﻿.packing-app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.app-header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.5s ease-out;
}

#app-title {
    color: var(--text-main);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.packing-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.category-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.category-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .category-header .badge {
        background: var(--bg-base);
        padding: 0.25rem 0.6rem;
        border-radius: 20px;
        font-size: 0.8rem;
        color: var(--text-muted);
    }

.item-list {
    display: flex;
    flex-direction: column;
}

.item-row {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    background: transparent;
    transition: background 0.2s;
}

    .item-row:hover {
        background: var(--bg-surface-hover);
    }

    .item-row:last-child {
        border-bottom: none;
    }

.item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-name {
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.05rem;
}

.item-needed {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.claims-area {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.claim-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: help;
    border: 2px solid var(--bg-surface);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

    .claim-avatar.me {
        background: #10b981; /* Green to indicate it's you */
        cursor: pointer;
    }

        .claim-avatar.me:hover::after {
            content: "\F62A"; /* bi-x */
            font-family: "bootstrap-icons";
            position: absolute;
            color: white;
            font-size: 1rem;
        }

.progress-track {
    width: 100%;
    height: 4px;
    background: var(--bg-base);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

    .progress-fill.complete {
        background: #10b981;
    }

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
}

    .btn-icon:hover {
        color: var(--text-main);
        background: rgba(255,255,255,0.1);
    }

.btn-claim {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-claim:hover:not(:disabled) {
        background: var(--accent);
        border-color: var(--accent);
    }

    .btn-claim:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.add-item-form {
    padding: 1rem 1.25rem;
    background: rgba(0,0,0,0.1);
    display: flex;
    gap: 0.5rem;
}

    .add-item-form input {
        background: var(--bg-base);
        border: 1px solid var(--border-color);
        color: var(--text-main);
        padding: 0.5rem;
        border-radius: 6px;
        font-size: 0.9rem;
    }

        .add-item-form input[type="text"] {
            flex: 1;
        }

        .add-item-form input[type="number"] {
            width: 60px;
        }

.btn-add {
    background: var(--accent);
    border: none;
    color: white;
    padding: 0 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/* --- PackSync Settings Modal Styling --- */
.packsync-settings-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.packsync-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.packsync-label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.packsync-input {
    width: 100%;
    /* Dark inner well look */
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .packsync-input:hover {
        border-color: rgba(255, 255, 255, 0.2);
    }

    .packsync-input:focus {
        outline: none;
        background: var(--bg-base);
        border-color: var(--accent);
        /* Subtle glow using the CSS variable */
        box-shadow: 0 0 0 3px rgba(var(--accent), 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .packsync-input::placeholder {
        color: var(--text-muted);
        opacity: 0.5;
    }

textarea.packsync-input {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.packsync-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.2rem;
}

    .packsync-hint i {
        color: var(--accent);
    }