:root {
    --primary-bg: #F7F5DA;
    --card-bg: #cdf2bf;
    --text-color: #264627;
    --text-muted: #5a7558;
    --border-color: #d1dfce;
    --accent-btn: #59744f;
    --delete-badge-bg: #fbe6e6;
    --delete-badge-text: #db5c51;
    --nav-active: #264627;
    --nav-inactive: #9eb59d;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f0f0;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Simulate Mobile App Container */
.app-container {
    width: 100%;
    max-width: 1440px; /* typical iPhone max width */
    min-height: 100vh;
    background-color: var(--primary-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* When viewing on a real mobile device, it should take full height */
@media (max-width: 414px) {
    .app-container {
        min-height: 100vh;
        box-shadow: none;
    }
}

.view {
    display: none;
    flex: 1;
    flex-direction: column;
    padding-bottom: 70px; /* space for fixed bottom nav */
}

.view.active {
    display: flex;
}

.header {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--primary-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.content {
    flex: 1;
    padding: 10px;
}

/* ---- WEATHER VIEW STYLES ---- */
.weather-header h2 {
    display: flex;
    align-items: center;
}

.location {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.current-weather-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.weather-icon-large {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

#current-temp {
    font-size: 54px;
    font-weight: 800;
    margin-bottom: 5px;
    line-height: 1;
}

#current-desc {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.feels-like {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.weather-details {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.detail-box {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 15px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.detail-box i {
    font-size: 20px;
}

.detail-value {
    font-weight: 700;
    font-size: 16px;
}

.detail-label {
    font-size: 12px;
    color: var(--text-muted);
}

.forecast-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
.calendar-icon {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.2em;
    height: 1.2em;
}

.forecast-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.forecast-day {
    font-weight: 700;
    font-size: 16px;
    width: 50px;
}

.forecast-icon img {
    width: 50px;
    height: 50px;
}

.forecast-temps {
    font-weight: 700;
    font-size: 16px;
}
.forecast-temps .min-temp {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 8px;
}


/* ---- LIST VIEW STYLES ---- */
.list-header {
    display: flex;
    flex-direction: column;
}

.list-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.delete-checked-btn {
    background-color: var(--delete-badge-bg);
    color: var(--delete-badge-text);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.add-item-bar {
    display: flex;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border-radius: 12px;
}

.add-item-bar input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-right: none;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    padding: 0 15px;
    font-size: 16px;
    font-family: inherit;
    background-color: var(--card-bg);
    color: var(--text-color);
    outline: none;
}
.add-item-bar input::placeholder {
    color: var(--text-muted);
}

.add-item-bar button {
    background-color: var(--accent-btn);
    color: white;
    border: none;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    font-family: inherit;
}

.list-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    transition: opacity 0.2s;
}

.list-item.checked {
    opacity: 0.7;
}

.item-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background-color: transparent;
}

.list-item.checked .item-checkbox {
    background-color: #8db58d;
    border-color: #8db58d;
    color: white;
}
.list-item.checked .item-checkbox i {
    font-size: 14px;
}

.item-name {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
}

.list-item.checked .item-name {
    text-decoration: line-through;
    color: var(--text-muted);
}

.item-delete {
    color: #9ab39a;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.items-count-footer {
    text-align: center;
    padding: 15px;
    border-top: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 15px;
}

/* ---- BOTTOM NAVIGATION ---- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 1440px;
    height: 60px;
    display: flex;
    border-top: 1px solid var(--border-color);
    background-color: var(--primary-bg);
    z-index: 20;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--nav-inactive);
    cursor: pointer;
    gap: 4px;
    padding-top: 5px;
}

.nav-item.active {
    color: var(--nav-active);
}

.nav-item i {
    font-size: 20px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 600;
}

/* ---- INSTALL BANNER ---- */
.install-banner {
    position: fixed;
    bottom: 70px;
    left: 10px;
    right: 10px;
    background-color: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: 50;
    max-width: 394px;
    margin: 0 auto;
}
.install-banner.show {
    display: flex;
}
.banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}
.banner-icon {
    font-size: 30px;
    color: var(--accent-btn);
}
.banner-text strong {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}
.banner-text p {
    font-size: 12px;
    color: var(--text-muted);
}
.banner-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--accent-btn);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
}
