/* Color Palette - Playful & Colorful (Default Theme) */
:root {
    --sunset-orange: #FF6B6B;
    --ocean-blue: #4ECDC4;
    --mint-green: #95E1D3;
    --warm-yellow: #FFE66D;
    --lavender: #A8E6CF;
    --coral: #FF8B94;
    --sky-blue: #87CEEB;
    --peach: #FFD3A5;
    --white: #FFFFFF;
    --dark-gray: #2C3E50;
    --light-gray: #F5F5F5;
    --text-gray: #555;
    --shadow: rgba(0, 0, 0, 0.14);
    
    /* Background and surface colors */
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-card: var(--white);
    /* Navbar defaults to a dark "glass" surface to match the hero gradient */
    --bg-nav: rgba(15, 12, 41, 0.78);
    --bg-sidebar: var(--white);
    --bg-input: var(--white);
    --bg-chat: var(--light-gray);
    --text-primary: var(--dark-gray);
    --text-secondary: var(--text-gray);
    --border-color: var(--light-gray);
}

/* Dark Mode Theme */
body.dark-mode {
    --sunset-orange: #FF6B6B;
    --ocean-blue: #4ECDC4;
    --mint-green: #95E1D3;
    --warm-yellow: #FFE66D;
    --coral: #FF8B94;
    
    --white: #1a1a2e;
    --dark-gray: #e0e0e0;
    --light-gray: #16213e;
    --text-gray: #b0b0b0;
    --shadow: rgba(0, 0, 0, 0.3);
    
    /* Dark mode backgrounds */
    --bg-primary: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --bg-card: #16213e;
    --bg-nav: rgba(15, 12, 41, 0.88);
    --bg-sidebar: #16213e;
    --bg-input: #0f0c29;
    --bg-chat: #0f0c29;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #2a2a3e;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden; /* prevent subtle horizontal overflow on mobile */
}

/* Navigation */
.navbar {
    background: var(--bg-nav);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem;
    transition: background 0.3s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    position: relative;
}

.nav-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.15rem;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
}

.nav-menu-btn:hover {
    background: rgba(78, 205, 196, 0.22);
    transform: translateY(-1px);
}

.nav-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem;
    min-width: 220px;
    border-radius: 16px;
    background: rgba(15, 12, 41, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1200;
}

.nav-menu.open {
    display: flex;
}

.nav-menu .nav-menu-item {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    white-space: nowrap;
    overflow: visible;
}

.nav-menu .nav-menu-item:hover {
    transform: none;
}

/* Keyboard accessibility */
.nav-menu-btn:focus-visible,
.nav-menu .nav-menu-item:focus-visible,
.theme-toggle-btn:focus-visible,
.alerts-btn:focus-visible,
.create-trip-btn:focus-visible {
    outline: 3px solid rgba(78, 205, 196, 0.55);
    outline-offset: 2px;
}

.nav-menu-icon {
    font-size: 0.95rem;
    opacity: 0.78;
    filter: saturate(0.9);
}

.nav-menu-label {
    flex: 1 1 auto;
    min-width: 0;
}

/* Use the same menu pattern on desktop and mobile (prevents overflow on small screens). */

@media (max-width: 720px) {
    .user-info {
        padding: 0.35rem 0.6rem;
        border-radius: 16px;
    }
    .user-name {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.85rem;
    }
}

/* Phone-sized layout polish (prevents navbar overflow and "shrunk" pages) */
@media (max-width: 520px) {
    .navbar {
        padding: 0.75rem;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .logo {
        font-size: 1.25rem;
        gap: 0.5rem;
        flex: 1 1 auto;
        min-width: 0;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }

    .logo-text {
        font-size: 1.25rem;
        line-height: 1;
    }

    .nav-actions {
        flex: 1 1 100%;
        justify-content: flex-end;
        gap: 0.45rem;
        min-width: 0;
    }

    .user-info {
        max-width: 48vw;
        padding: 0.3rem 0.55rem;
        gap: 0.35rem;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }

    .user-name {
        max-width: 36vw;
        font-size: 0.82rem;
    }

    .nav-menu-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 1.05rem;
    }

    .theme-toggle-btn {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .alerts-btn {
        width: 44px;
        height: 44px;
    }

    .toast-container {
        top: 72px;
        width: calc(100vw - 1.25rem);
    }

    .trip-details {
        padding: 1rem;
        margin-top: 1rem;
    }

    .back-btn {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }

    .trip-header h1 {
        font-size: 2.0rem;
        line-height: 1.1;
    }

    .trip-header-info {
        gap: 0.6rem;
        font-size: 0.95rem;
    }

    /* Trip details tabs: wrap on phones (avoid off-screen horizontal scrolling) */
    .trip-tabs {
        flex-wrap: wrap;
        overflow-x: visible; /* override tablet rule that enables horizontal scrolling */
        row-gap: 0.45rem;
        padding-bottom: 0.5rem;
    }

    .tab-btn {
        padding: 0.55rem 0.8rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-name {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.sign-in-btn, .sign-out-btn, .profile-btn {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.25s, transform 0.15s, color 0.25s;
}

.sign-in-btn:hover, .sign-out-btn:hover, .profile-btn:hover {
    background: rgba(78, 205, 196, 0.22);
    transform: translateY(-1px);
}

.sign-out-btn {
    background: rgba(255, 255, 255, 0.12);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.theme-toggle-btn {
    background: rgba(78, 205, 196, 0.85);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    font-size: 1.5rem;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--sunset-orange);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.02em;
    user-select: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: inline-block;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.logo-text {
    display: inline-block;
    background: linear-gradient(90deg, var(--sunset-orange), var(--ocean-blue), var(--mint-green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
    font-weight: 900;
}

.alerts-btn {
    background: rgba(78, 205, 196, 0.85);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.alerts-btn:hover {
    transform: scale(1.1);
}

.alerts-btn:active {
    transform: scale(0.95);
}

.alert-icon {
    font-size: 1.5rem;
}

.alert-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--sunset-orange);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ---- Footer ---- */
.app-footer {
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.02);
}
body.dark-mode .app-footer {
    background: rgba(0,0,0,0.12);
    border-top: 1px solid rgba(255,255,255,0.10);
}
.app-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}
.app-footer-brand {
    font-weight: 900;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.app-footer-tm {
    font-size: 0.8em;
    vertical-align: super;
    margin-left: 1px;
}
.app-footer-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
    line-height: 1.35;
}
.app-footer-right {
    max-width: 520px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.trip-list-toggle {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    width: fit-content;
}

.profile-tabs {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    flex-wrap: wrap;
    margin-top: 1.1rem;
}

body.dark-mode .trip-list-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .profile-tabs {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.trip-toggle-btn {
    border: none;
    border-radius: 12px;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    font-weight: 700;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .trip-toggle-btn {
    color: var(--text-primary);
}

.trip-toggle-btn.active {
    background: rgba(78, 205, 196, 0.85);
    color: #1a1a1a;
}

.profile-tab-panel {
    margin-top: 1rem;
}

.page-title {
    color: var(--white);
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: color 0.3s;
}

body.dark-mode .page-title {
    color: var(--text-primary);
}

.create-trip-btn {
    background: var(--mint-green);
    /* Fixed dark text for contrast even in dark-mode (where --dark-gray becomes light) */
    color: #1a1a1a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    box-shadow: 0 4px 6px var(--shadow);
}

.create-trip-btn:hover {
    transform: translateY(-2px);
    background: var(--ocean-blue);
    color: white;
}

.create-trip-btn:active {
    transform: translateY(0);
}

/* Trip Cards Grid */
.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    transition: opacity 160ms ease, transform 160ms ease;
}

.trips-grid.is-fading {
    opacity: 0.7;
    transform: translateY(2px);
}

.trip-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 16px var(--shadow);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.trip-cover {
    position: relative;
    height: 150px;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    border-radius: 20px 20px 16px 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(255, 107, 107, 0.20));
}

.trip-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}

.trip-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.18) 0%,
        rgba(0, 0, 0, 0.05) 55%,
        rgba(0, 0, 0, 0.30) 100%);
}

.trip-cover-attrib {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.trip-cover-attrib:hover {
    background: rgba(0, 0, 0, 0.50);
    color: rgba(255, 255, 255, 0.98);
}

.trip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--sunset-orange), var(--ocean-blue), var(--mint-green));
}

.trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.trip-card.last-opened {
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.55), 0 10px 22px var(--shadow);
}

.trip-search-count {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    transition: opacity 140ms ease, transform 140ms ease;
}

.trip-search-count.hidden {
    opacity: 0;
    transform: translateY(-1px);
    pointer-events: none;
}

.trip-search-count.is-clickable {
    cursor: pointer;
}

.trip-search-count.is-clickable:hover {
    color: var(--text-primary);
    background: var(--text-gray);
}

body.dark-mode .trip-search-count.is-clickable:hover {
    background: #1c2a55;
    color: var(--text-primary);
}

.trip-destination {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.trip-dates {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.trip-weather {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: background 0.3s;
}

.weather-icon {
    font-size: 1.5rem;
}

.weather-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.weather-link:hover {
    text-decoration: underline;
}

.weather-temp {
    font-weight: bold;
    color: var(--ocean-blue);
}

.trip-travelers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.traveler-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sunset-orange), var(--coral));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.trip-alert-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    background: var(--sunset-orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Trip Details */
.trip-details {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 16px var(--shadow);
    margin-top: 2rem;
    transition: background 0.3s;
}

#dashboard.animate-in,
#tripDetails.animate-in {
    animation: viewFadeIn 180ms ease;
}

@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#tripDetails.animate-out {
    animation: viewFadeOut 140ms ease forwards;
}

@keyframes viewFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(6px);
    }
}

.back-btn {
    background: var(--ocean-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: background 0.3s;
}

.back-btn:hover {
    background: var(--sunset-orange);
}

.trip-header {
    margin-bottom: 2rem;
}

.trip-hero {
    position: relative;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.25), rgba(255, 107, 107, 0.20));
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 22px var(--shadow);
    margin-bottom: 1.25rem;
}
body.dark-mode .trip-hero {
    border-color: rgba(255,255,255,0.10);
}
.trip-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
}
.trip-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.16) 0%,
        rgba(0, 0, 0, 0.05) 55%,
        rgba(0, 0, 0, 0.34) 100%);
}
.trip-hero-attrib {
    position: absolute;
    right: 0.85rem;
    bottom: 0.75rem;
    z-index: 2;
    max-width: min(520px, 92%);
    font-size: 0.85rem;
    line-height: 1.2;
    background: rgba(0,0,0,0.55);
    color: rgba(255,255,255,0.92);
    padding: 0.35rem 0.55rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(6px);
}
.trip-hero-attrib a {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
}
.trip-hero-attrib a:hover { border-bottom-color: rgba(255,255,255,0.45); }

@media (max-width: 600px) {
    .trip-hero { height: 190px; }
}

.trip-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
    letter-spacing: -0.02em;
}

.trip-header-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    color: var(--text-secondary);
    transition: color 0.3s;
    font-size: 1.02rem;
    line-height: 1.25;
}

/* Make the trip header meta info scannable (chips) */
.trip-header-info > span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    color: var(--text-primary);
}
body.dark-mode .trip-header-info > span {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
}

.trip-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}
.trip-header-main { min-width: 280px; flex: 1 1 520px; }
.trip-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.trip-header-note {
    margin-top: 0.6rem;
    color: var(--text-secondary);
    font-size: 1.0rem;
    line-height: 1.35;
    padding: 0.6rem 0.75rem;
    border-radius: 14px;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.06);
}
body.dark-mode .trip-header-note {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.86);
}

.trip-perm-badge {
    margin: 0.6rem 0 0.25rem 0;
    padding: 0.55rem 0.75rem;
    border-radius: 14px;
    background: rgba(78, 205, 196, 0.14);
    border: 1px solid rgba(78, 205, 196, 0.22);
    color: var(--text-primary);
    font-weight: 800;
}

.trip-summary-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}
.trip-summary-card {
    text-align: left;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(0,0,0,0.03);
    border-radius: 14px;
    padding: 0.85rem 0.9rem;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}
.trip-summary-card:hover {
    transform: translateY(-1px);
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.12);
}
body.dark-mode .trip-summary-card {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
}
body.dark-mode .trip-summary-card:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.16);
}
.trip-summary-title {
    font-weight: 900;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}
.trip-summary-detail {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.25;
}
body.dark-mode .trip-summary-detail { color: rgba(255,255,255,0.80); }

/* Tabs */
.trip-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    transition: border-color 0.3s;
}

.tab-btn {
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 0.7rem 1.05rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-primary);
    border-radius: 999px;
    transition: all 0.3s;
    font-weight: 900;
}

.tab-btn.active {
    background: rgba(78, 205, 196, 0.85);
    border-color: rgba(78, 205, 196, 0.65);
    color: #0b1b1a;
}

body.dark-mode .tab-btn {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
}
body.dark-mode .tab-btn.active {
    background: rgba(78, 205, 196, 0.80);
    border-color: rgba(78, 205, 196, 0.55);
    color: #0b1b1a;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Chat Interface */
.chat-settings-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-bottom: none;
    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
}

.settings-btn {
    background: var(--ocean-blue);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    color: white;
}

.settings-btn:hover {
    background: var(--sunset-orange);
}

.ai-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--bg-chat);
    transition: background 0.3s;
}

.message {
    margin-bottom: 1rem;
    display: flex;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    word-wrap: break-word;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, var(--sunset-orange), var(--coral));
    color: white;
    border-bottom-right-radius: 5px;
}

.message.assistant .message-bubble {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--mint-green);
    border-bottom-left-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-top: 2px solid var(--border-color);
    transition: background 0.3s, border-color 0.3s;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    transition: opacity 0.3s;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: var(--light-gray);
}

.modal-body {
    padding: 1.5rem;
}

.setting-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
}

.setting-group label {
    display: block;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.setting-group input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.setting-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.setting-input:focus {
    outline: none;
    border-color: var(--ocean-blue);
}

.setting-group small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.field-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 900;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

body.dark-mode .field-badge {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.field-badge.required {
    background: rgba(255, 107, 107, 0.18);
    border-color: rgba(255, 107, 107, 0.30);
    color: #7a1111;
}

body.dark-mode .field-badge.required {
    background: rgba(255, 107, 107, 0.20);
    border-color: rgba(255, 107, 107, 0.35);
    color: rgba(255, 255, 255, 0.92);
}

.field-badge.optional {
    background: rgba(78, 205, 196, 0.16);
    border-color: rgba(78, 205, 196, 0.28);
    color: #0b3b37;
}

body.dark-mode .field-badge.optional {
    background: rgba(78, 205, 196, 0.18);
    border-color: rgba(78, 205, 196, 0.32);
    color: rgba(255, 255, 255, 0.92);
}

.profile-setup-notice {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(255, 230, 109, 0.22);
    border: 1px solid rgba(255, 230, 109, 0.38);
    color: var(--text-primary);
}

body.dark-mode .profile-setup-notice {
    background: rgba(255, 230, 109, 0.18);
    border-color: rgba(255, 230, 109, 0.32);
}

.profile-setup-notice-title {
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.profile-setup-notice-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Profile notice for inbound emailed trips pending manual review */
.profile-queue-notice {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(78, 205, 196, 0.14);
    border: 1px solid rgba(78, 205, 196, 0.28);
    color: var(--text-primary);
}
body.dark-mode .profile-queue-notice {
    background: rgba(78, 205, 196, 0.12);
    border-color: rgba(78, 205, 196, 0.24);
}
.profile-queue-notice-title {
    font-weight: 900;
    margin-bottom: 0.25rem;
}
.profile-queue-notice-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.35;
}

.form-input.required-missing {
    border-color: rgba(255, 107, 107, 0.95) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18) !important;
}

.save-settings-btn {
    width: 100%;
    padding: 1rem;
    background: var(--ocean-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.save-settings-btn:hover {
    background: var(--sunset-orange);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--ocean-blue);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.btn-cancel, .btn-submit {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-compact {
    padding: 0.45rem 1.1rem;
    font-size: 0.9rem;
}

.btn-cancel {
    background: var(--light-gray);
    color: var(--text-primary);
}

.btn-cancel:hover {
    background: var(--text-gray);
    color: white;
}

/* Dark mode: var(--text-gray) is light, so white text is unreadable */
body.dark-mode .btn-cancel:hover {
    background: #1c2a55;
    color: var(--text-primary);
}

.btn-submit {
    background: var(--ocean-blue);
    color: white;
}

.btn-submit:hover {
    background: var(--sunset-orange);
}

.btn-danger {
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255,107,107,0.55);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.15s;
    background: rgba(255,107,107,0.16);
    color: var(--text-primary);
}
body.dark-mode .btn-danger {
    color: rgba(255,255,255,0.92);
    border-color: rgba(255,107,107,0.45);
    background: rgba(255,107,107,0.18);
}
.btn-danger:hover {
    background: rgba(255,107,107,0.26);
    transform: translateY(-1px);
}

.chat-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.chat-input:focus {
    border-color: var(--ocean-blue);
}

.chat-send-btn {
    background: var(--ocean-blue);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
}

.chat-send-btn:hover {
    background: var(--sunset-orange);
}

/* Alerts */
.alert-item {
    background: var(--bg-card);
    border-left: 4px solid var(--sunset-orange);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px var(--shadow);
    transition: background 0.3s;
}

.alert-item.info {
    border-left-color: var(--ocean-blue);
}

.alert-item.warning {
    border-left-color: var(--warm-yellow);
}

.alert-item.success {
    border-left-color: var(--mint-green);
}

.alert-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color 0.3s;
}

.alert-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

/* Packing List */
.packing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.packing-header h2 {
    color: var(--text-primary);
    transition: color 0.3s;
}

.refresh-suggestions-btn {
    background: var(--mint-green);
    /* Fixed dark text for contrast even in dark-mode (where --dark-gray becomes light) */
    color: #1a1a1a;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.refresh-suggestions-btn:hover {
    background: var(--ocean-blue);
    color: white;
}

.packing-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--light-gray);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--mint-green), var(--ocean-blue));
    transition: width 0.3s;
    border-radius: 15px;
}

.progress-text {
    font-weight: bold;
    color: var(--text-primary);
    transition: color 0.3s;
}

.packing-category {
    margin-bottom: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    transition: color 0.3s;
}

.packing-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: background 0.3s;
}

.packing-item-label {
    color: var(--text-primary);
    transition: color 0.3s;
}

.packing-item:hover {
    background: #e8e8e8;
}

/* Dark mode: don't switch to a light hover background (it kills contrast) */
body.dark-mode .packing-item:hover {
    background: #1c2a55; /* slightly lighter than --light-gray (#16213e) */
}

.packing-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--ocean-blue);
}

.packing-item-label {
    flex: 1;
    cursor: pointer;
}

.packing-item-label.completed {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.item-suggestion-badge {
    background: var(--warm-yellow);
    /* Use a fixed dark text color for contrast in BOTH light + dark themes */
    color: #1a1a1a !important;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Packing: Power & plugs card */
.packing-power-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 1rem 1rem 0.9rem 1rem;
    margin-bottom: 1.25rem;
}

.packing-power-title {
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.packing-power-meta {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 0.9rem;
}

.packing-power-warn {
    color: var(--warm-yellow);
    font-size: 0.92rem;
}

.packing-power-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-bottom: 0.85rem;
}

.packing-power-block {
    background: rgba(0,0,0,0.10);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 0.75rem;
}

.packing-power-block-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.packing-power-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.packing-power-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 84px;
}

.packing-power-type svg {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}

.packing-power-type-cap {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.packing-power-rec {
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.2rem;
}

.packing-power-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

@media (max-width: 640px) {
    .packing-power-row {
        grid-template-columns: 1fr;
    }
    .packing-power-type {
        min-width: 76px;
    }
}

/* Itinerary */
.itinerary-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.itinerary-item-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.itinerary-mini-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    cursor: pointer;
}

body.dark-mode .itinerary-mini-btn {
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
}

.itinerary-mini-btn:hover {
    background: rgba(78, 205, 196, 0.22);
}

.itinerary-timeline {
    position: relative;
    padding-left: 2rem;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--sunset-orange), var(--ocean-blue));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ocean-blue);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--ocean-blue);
}

.timeline-time {
    font-weight: bold;
    color: var(--sunset-orange);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color 0.3s;
}

.timeline-description {
    color: var(--text-secondary);
    transition: color 0.3s;
}

/* Itinerary: visually mark items that are in the past */
.timeline-item.past {
    opacity: 0.72;
}
.timeline-item.past .timeline-title,
.timeline-item.past .timeline-description {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(0,0,0,0.35);
}
body.dark-mode .timeline-item.past .timeline-title,
body.dark-mode .timeline-item.past .timeline-description {
    text-decoration-color: rgba(255,255,255,0.35);
}
.timeline-item.past .timeline-time {
    color: var(--text-secondary);
}
.timeline-item.past::before {
    background: rgba(0,0,0,0.25);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.18);
}
body.dark-mode .timeline-item.past::before {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}

/* Alerts Sidebar */
.alerts-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 350px;
    background: var(--bg-sidebar);
    box-shadow: -4px 0 16px var(--shadow);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s, background 0.3s;
    overflow-y: auto;
}

.alerts-sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--sunset-orange), var(--coral));
    color: white;
    transition: border-color 0.3s;
}

.sidebar-header h2 {
    margin: 0;
}

.close-sidebar {
    background: white;
    color: var(--sunset-orange);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.close-sidebar:hover {
    transform: scale(1.1);
}

.sidebar-alerts {
    padding: 1rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--ocean-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: min(560px, calc(100vw - 2rem));
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: rgba(15, 12, 41, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    border-left: 6px solid var(--ocean-blue);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.toast.toast-success { border-left-color: var(--mint-green); }
.toast.toast-warning { border-left-color: var(--warm-yellow); }
.toast.toast-error { border-left-color: var(--sunset-orange); }

.toast .toast-msg {
    font-size: 0.95rem;
    line-height: 1.35;
}

.toast .toast-close {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .trips-grid {
        grid-template-columns: 1fr;
    }

    .trip-details {
        padding: 1rem;
    }

    .trip-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .chat-container {
        height: 500px;
    }

    .alerts-sidebar {
        width: 100%;
    }

    .theme-toggle-btn,
    .alerts-btn {
        width: 45px;
        height: 45px;
    }

    .nav-actions {
        gap: 0.5rem;
    }
}

