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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f0f7fa;
    color: #1c3d4f;
    min-height: 100vh;
}

header {
    background: linear-gradient(135deg, #0e7490, #06b6d4);
    color: #fff;
    padding: 2rem 1rem 1.5rem;
    text-align: center;
}

header h1 {
    font-size: 1.8rem;
}

.subtitle {
    opacity: 0.9;
    margin-top: 0.25rem;
}

.progress-wrap {
    max-width: 600px;
    margin: 1rem auto 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #a3e635;
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-label {
    font-size: 0.9rem;
    white-space: nowrap;
}

main {
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.add-form input[type="text"],
.add-form select {
    flex: 1 1 150px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.add-form button {
    padding: 0.6rem 1.25rem;
    background: #0e7490;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.add-form button:hover {
    background: #155e75;
}

.category {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    overflow: hidden;
}

.category h2 {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    background: #e0f2fe;
    color: #0e7490;
}

.items {
    list-style: none;
}

.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    border-top: 1px solid #f1f5f9;
}

.item label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    cursor: pointer;
}

.item input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #0e7490;
}

.item.packed .name {
    text-decoration: line-through;
    color: #94a3b8;
}

.person {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.delete {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.delete:hover {
    color: #ef4444;
}

.actions {
    text-align: center;
    margin-top: 1.5rem;
}

#unpack-all {
    background: none;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

#unpack-all:hover {
    border-color: #0e7490;
    color: #0e7490;
}

.nav {
    margin-top: 0.75rem;
}

.nav a {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
}

.nav a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.leg-form {
    padding: 1rem;
}

.leg-form input[type="date"],
.leg-form input[type="time"] {
    flex: 1 1 130px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.outfit-controls {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    flex-wrap: wrap;
}

.outfit-controls select {
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.outfit-controls button {
    padding: 0.6rem 1.25rem;
    background: #0e7490;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}

.outfit-controls button:hover {
    background: #155e75;
}

#outfit-result {
    padding: 0 1rem 1rem;
}

#outfit-result .error {
    color: #b91c1c;
}

#outfit-result .loading {
    color: #64748b;
}

.weather-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.weather-card {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
}

.weather-card h3 {
    font-size: 0.9rem;
    color: #0e7490;
    margin-bottom: 0.25rem;
}

.weather-card .temp {
    font-size: 1.4rem;
    font-weight: 700;
}

.tips {
    list-style: none;
}

.tips li {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #fefce8;
    border-left: 4px solid #eab308;
    border-radius: 0 8px 8px 0;
}

.empty-hint {
    color: #64748b;
    text-align: center;
    padding: 1rem;
}
