* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #e0e0e0;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 16px 40px;
}

header {
    text-align: center;
    padding: 30px 0 20px;
}

header h1 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 4px;
}

header p {
    color: #8899aa;
    font-size: 0.95rem;
}

/* Progress */
.progress-bar-container {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #aab;
}

.progress-track {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    height: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b4d8, #48cae4);
    border-radius: 8px;
    transition: width 0.4s ease;
}

/* Add Form */
.add-form {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.add-form input[type="text"] {
    flex: 1;
    min-width: 180px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.add-form input[type="text"]:focus {
    border-color: #48cae4;
}

.add-form input[type="text"]::placeholder {
    color: #667;
}

.add-form select {
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    min-width: 150px;
}

.add-form select option {
    background: #1a1a2e;
    color: #fff;
}

.btn-add {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.2s;
    white-space: nowrap;
}

.btn-add:hover {
    transform: scale(1.03);
}

.btn-add:active {
    transform: scale(0.97);
}

/* Category section */
.category-section {
    margin-bottom: 20px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.category-icon {
    font-size: 1.3rem;
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ccd;
}

.category-count {
    margin-left: auto;
    font-size: 0.8rem;
    color: #889;
    background: rgba(255,255,255,0.06);
    padding: 2px 10px;
    border-radius: 10px;
}

/* Item */
.item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 4px;
    border-radius: 10px;
    transition: background 0.15s;
    cursor: pointer;
    user-select: none;
}

.item:hover {
    background: rgba(255,255,255,0.05);
}

.item.packed {
    opacity: 0.5;
}

.item.packed .item-title {
    text-decoration: line-through;
}

.item-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.item.packed .item-checkbox {
    background: #00b4d8;
    border-color: #00b4d8;
}

.item-checkbox svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.2s;
}

.item.packed .item-checkbox svg {
    opacity: 1;
}

.item-title {
    flex: 1;
    font-size: 0.93rem;
    color: #dde;
}

.item-delete {
    background: none;
    border: none;
    color: #556;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    opacity: 0;
}

.item:hover .item-delete {
    opacity: 1;
}

.item-delete:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.item-delete svg {
    width: 16px;
    height: 16px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #667;
}

.empty-state p {
    font-size: 1rem;
    margin-top: 12px;
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 4px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px;
    color: #889;
}

/* Responsive */
@media (max-width: 500px) {
    header h1 {
        font-size: 1.4rem;
    }
    .add-form {
        flex-direction: column;
    }
    .add-form select,
    .btn-add {
        width: 100%;
    }
}
