/* Modern Travel Planner CSS */

/* CSS Variables for consistent theming */
/* Theme tokens. Dark values live under [data-theme="dark"], set on <html> by the inline script in index.html */
:root {
    /* Primary Colors */
    --primary-color: #2350C8;
    --primary-hover: #1D43A8;
    --primary-dark: #1D43A8;
    --primary-light: #E8EEFB;
    --primary-ink: #1D43A8;
    --on-primary: #ffffff;
    --secondary-color: #4E5561;
    --success-color: #15803d;
    --danger-color: #dc2626;
    --warning-color: #d97706;

    /* Background & Surface Colors */
    --background-color: #F5F4F0;
    --surface-color: #ffffff;
    --surface-secondary: #FAF9F6;
    --surface-hover: #F0EEE9;

    /* Header */
    --header-bg: #ffffff;
    --header-text: #17191E;

    /* Text Colors */
    --text-primary: #17191E;
    --text-secondary: #4E5561;
    --text-tertiary: #666D79;

    /* Border Colors */
    --border-color: #E6E3DC;
    --border-hover: #D3CFC6;
    --border-focus: #2350C8;

    /* Status */
    --status-upcoming-bg: #E3F4EA;
    --status-upcoming-text: #146C3A;
    --status-progress-bg: #E8EEFB;
    --status-progress-text: #1D43A8;
    --status-past-bg: #EEEDE9;
    --status-past-text: #4E5561;
    --warn-bg: #FDF1DC;
    --warn-text: #8A4B06;

    /* Categories */
    --cat-flight-bg: #E6ECFA;
    --cat-flight-text: #1E40AF;
    --cat-accommodation-bg: #F3E8FC;
    --cat-accommodation-text: #7E22CE;
    --cat-car-bg: #FDEEE4;
    --cat-car-text: #B03A0A;
    --cat-poi-bg: #E2F2E8;
    --cat-poi-text: #166534;
    --cat-train-bg: #DDF3EC;
    --cat-train-text: #047857;
    --cat-reminder-bg: #E0F0F9;
    --cat-reminder-text: #0369A1;
    --cat-other-bg: #EEEDE9;
    --cat-other-text: #4E5561;

    /* Fonts */
    --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
    --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadow System — soft and warm */
    --shadow-xs: 0 1px 2px 0 rgba(23, 25, 30, 0.04);
    --shadow-sm: 0 1px 2px rgba(23, 25, 30, 0.04), 0 1px 3px rgba(23, 25, 30, 0.05);
    --shadow-md: 0 4px 12px -4px rgba(23, 25, 30, 0.10), 0 2px 4px -2px rgba(23, 25, 30, 0.05);
    --shadow-lg: 0 10px 24px -8px rgba(23, 25, 30, 0.14), 0 4px 8px -4px rgba(23, 25, 30, 0.06);
    --shadow-xl: 0 20px 40px -12px rgba(23, 25, 30, 0.22), 0 8px 16px -8px rgba(23, 25, 30, 0.08);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;

    /* Colour Bar */
    --color-bar-width: 4px;

    /* Transition System */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    color-scheme: light;
}

:root[data-theme="dark"] {
    --primary-color: #3D6BE0;
    --primary-hover: #5580EA;
    --primary-dark: #A9BEFF;
    --primary-light: #1D2640;
    --primary-ink: #A9BEFF;
    --secondary-color: #AEB4BF;
    --success-color: #4ade80;
    --danger-color: #f87171;
    --warning-color: #fbbf24;

    --background-color: #0E1014;
    --surface-color: #16191F;
    --surface-secondary: #1B1F26;
    --surface-hover: #20242C;

    --header-bg: #16191F;
    --header-text: #ECEEF1;

    --text-primary: #ECEEF1;
    --text-secondary: #AEB4BF;
    --text-tertiary: #949BA7;

    --border-color: #2A2F38;
    --border-hover: #3A404B;
    --border-focus: #3D6BE0;

    --status-upcoming-bg: #173323;
    --status-upcoming-text: #7FD39A;
    --status-progress-bg: #1D2640;
    --status-progress-text: #A9BEFF;
    --status-past-bg: #23272E;
    --status-past-text: #AEB4BF;
    --warn-bg: #3A2A12;
    --warn-text: #F3BE6A;

    --cat-flight-bg: #1B2440;
    --cat-flight-text: #9DB5FF;
    --cat-accommodation-bg: #2A1D3A;
    --cat-accommodation-text: #D2A8FF;
    --cat-car-bg: #36231A;
    --cat-car-text: #FFA877;
    --cat-poi-bg: #1A2E22;
    --cat-poi-text: #7FD39A;
    --cat-train-bg: #15302A;
    --cat-train-text: #6ED7B5;
    --cat-reminder-bg: #172B38;
    --cat-reminder-text: #7CC7F0;
    --cat-other-bg: #23272E;
    --cat-other-text: #AEB4BF;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 12px -4px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 24px -8px rgba(0, 0, 0, 0.55);
    --shadow-xl: 0 20px 40px -12px rgba(0, 0, 0, 0.6);

    color-scheme: dark;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.loading-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Authentication Screen */
.auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    padding: 20px;
}

.auth-container {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.tab-button.active {
    background: var(--primary-color);
    color: white;
}

.tab-button:hover:not(.active) {
    background: var(--background-color);
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--surface-color);
    transition: all var(--transition-base);
    font-family: inherit;
}

/* Select-specific styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Textarea-specific */
.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
    opacity: 1;
}

/* Hover state */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--border-hover);
}

/* Focus state - enhanced */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Disabled state */
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background-color: var(--surface-secondary);
    color: var(--text-tertiary);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Date and time input specific styling */
.form-group input[type="date"],
.form-group input[type="time"] {
    cursor: pointer;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator,
.form-group input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: opacity(0.6);
    transition: filter var(--transition-fast);
}

.form-group input[type="date"]:hover::-webkit-calendar-picker-indicator,
.form-group input[type="time"]:hover::-webkit-calendar-picker-indicator {
    filter: opacity(1);
}

/* Number input refinements */
.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Password Input with Toggle */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 3rem; /* Make room for the toggle button */
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.password-toggle:hover {
    background-color: var(--background-color);
}

.password-icon {
    font-size: 1rem;
    user-select: none;
}

.password-toggle.hidden .password-icon {
    opacity: 0.6;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    user-select: none;
    -webkit-user-select: none;
    padding: 0.75rem 0.875rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    transition: background-color var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.checkbox-label:hover {
    background-color: var(--surface-hover);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    pointer-events: auto;
    opacity: 1;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    accent-color: var(--primary-color);
    border-radius: 4px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.checkbox-label .checkmark {
    display: inline-block;
    margin-left: 0.25rem;
    pointer-events: none;
}

/* Responsive checkbox styling */
@media (max-width: 768px) {
    .checkbox-label {
        padding: 0.75rem 0;
        min-height: 44px;
    }

    .checkbox-label input[type="checkbox"] {
        width: 24px;
        height: 24px;
        margin-right: 1rem;
        min-width: 24px;
        min-height: 24px;
    }
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
    box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary:active {
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary:disabled:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-secondary:active {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-secondary:disabled:hover {
    transform: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Pending Users Notification Dot */
.pending-users-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid var(--surface-color);
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* App Screen */
.app-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    flex-shrink: 0;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--on-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.1875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--header-text);
}

.app-version {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

.app-nav {
    display: flex;
    gap: 0.25rem;
}

.nav-tab {
    height: 36px;
    padding: 0 0.875rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-tab:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.nav-tab.active {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.header-actions > .btn-primary {
    width: auto;
    height: 40px;
    padding: 0 0.875rem;
    margin-right: 0.25rem;
}

.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.icon-btn:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.user-menu {
    position: relative;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.user-button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--primary-light);
    color: var(--primary-ink);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.user-button:hover {
    border-color: var(--primary-color);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    min-width: 200px;
    margin-top: 0.5rem;
}

.user-info {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.logout-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    width: 100%;
    text-align: left;
}

.logout-btn:hover {
    background: var(--background-color);
    border-radius: var(--radius-sm);
}

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

/* Trips overview (featured "Up next" card) */
.trips-overview:has(#featuredTrip:empty) {
    display: none;
}

.trips-overview {
    margin-bottom: 1.5rem;
}

.featured-trip {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 20px;
    background: var(--primary-color);
    background-image: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 55%);
    color: var(--on-primary);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.featured-trip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.featured-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 0.375rem;
}

.featured-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.featured-trip .trip-meta-row {
    color: rgba(255, 255, 255, 0.88);
}

.featured-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.875rem;
    flex-shrink: 0;
}

.featured-countdown {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
}

.featured-trip .btn-primary {
    width: auto;
    background: #ffffff;
    color: #1D43A8;
    box-shadow: none;
    height: 40px;
    padding: 0 1.125rem;
}

.featured-trip .btn-primary:hover {
    background: #F0F3FC;
}

/* Trips Section */
.trips-section {
    background: transparent;
}

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

.section-header h2 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.filter-seg {
    display: inline-flex;
    padding: 4px;
    gap: 2px;
    border-radius: 12px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}

.filter-seg button {
    height: 34px;
    padding: 0 0.875rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.filter-seg button:hover {
    color: var(--text-primary);
}

.filter-seg button.active {
    background: var(--primary-light);
    color: var(--primary-ink);
}

.seg-count {
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--surface-hover);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-seg button.active .seg-count {
    background: var(--primary-color);
    color: var(--on-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 220px;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-tertiary);
    display: inline-flex;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 40px;
    padding: 0 2.5rem 0 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font: inherit;
    font-size: 0.9375rem;
    background: var(--surface-color);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-clear {
    position: absolute;
    right: 0.25rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    line-height: 1;
}

.search-clear:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.view-controls {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border-radius: 10px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}

.view-btn {
    width: 34px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.view-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* Trips Container */
.trips-container {
    display: grid;
    gap: 1rem;
}

.trips-container.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

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

/* Trip Card */
.trip-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1rem;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
}

.trip-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.trip-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trip-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--text-primary);
}

.trip-title-icons {
    display: inline-flex;
    gap: 0.375rem;
    color: var(--text-tertiary);
}

.featured-trip .trip-title-icons {
    color: rgba(255, 255, 255, 0.8);
}

.trip-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.trip-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.trip-meta-item .icon {
    opacity: 0.75;
}

.trip-details {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Status badge (trip cards and trip header) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 24px;
    padding: 0 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge.upcoming {
    background: var(--status-upcoming-bg);
    color: var(--status-upcoming-text);
}

.status-badge.in-progress {
    background: var(--status-progress-bg);
    color: var(--status-progress-text);
}

.status-badge.past {
    background: var(--status-past-bg);
    color: var(--status-past-text);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Trip Actions */
.trip-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.trip-actions .btn-open {
    height: 34px;
    padding: 0 0.875rem;
    border: none;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary-ink);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.trip-actions .btn-open:hover {
    background: var(--primary-color);
    color: var(--on-primary);
}

.trip-actions-icons {
    display: inline-flex;
    gap: 0.25rem;
}

/* Small icon buttons (trip cards, day headers, entry rows) */
.icon-btn-sm,
.icon-btn-sm.btn-edit,
.icon-btn-sm.btn-delete {
    width: 32px;
    height: 32px;
    min-height: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-tertiary);
    font-size: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.icon-btn-sm:hover,
.icon-btn-sm.btn-edit:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.icon-btn-sm.btn-delete:hover {
    background: rgba(220, 38, 38, 0.08);
    color: var(--danger-color);
    border-color: transparent;
}

.btn-action {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-open {
    background: var(--primary-color);
    color: white;
}

.btn-open:hover {
    background: var(--primary-hover);
}

.btn-edit {
    background: var(--warning-color);
    color: white;
}

.btn-edit:hover {
    background: #d97706;
}

.btn-delete {
    background: var(--danger-color);
    color: white;
    min-height: 44px; /* Match other buttons */
    padding: 0.75rem 1.5rem; /* Match other buttons */
    font-size: 1rem; /* Match other buttons */
}

.btn-delete:hover {
    background: #dc2626;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 2rem;
}

/* Search Results Modal */
.search-results-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}


.search-results-summary {
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.search-results-summary p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-results-summary strong {
    color: var(--primary-color);
    font-weight: 600;
}

.search-no-results {
    text-align: center;
    padding: 3rem 1rem;
}

.search-no-results .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.search-no-results h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.search-no-results p {
    color: var(--text-secondary);
}

.search-result-trip {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.search-result-trip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.search-result-trip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-result-trip-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.search-result-trip-dates {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.search-result-section {
    margin-bottom: 1.5rem;
}

.search-result-section:last-child {
    margin-bottom: 0;
}

.search-result-section h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.search-result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: background-color 0.2s;
    cursor: pointer;
}

.search-result-list li:hover {
    background: rgba(30, 64, 175, 0.05);
}

.search-result-list li strong {
    color: var(--primary-color);
    font-weight: 600;
}

.search-result-date {
    display: inline-block;
    margin-left: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: normal;
}

/* Responsive search */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-right {
        flex-direction: column;
        width: 100%;
    }
    
    .search-container {
        max-width: 100%;
        width: 100%;
    }
    
    .view-controls {
        align-self: flex-end;
    }
    
    .search-result-trip-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.modal-content {
    background: var(--surface-color);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp var(--transition-slow);
    transform-origin: center;
}

/* Scrollable content area */
.modal form {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.modal-content.large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    padding-top: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-color);
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: #d1d5db;
    border-radius: 2px;
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.modal form {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 2rem;
    flex-direction: column;
}

.modal-actions button {
    width: auto;
}

.modal-actions-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

/* Hide actions row (not used in desktop layout) */
#addEntryModal .modal-actions-row,
#addCostModal .modal-actions-row {
    display: none;
}


/* Trip Detail Content */
.trip-detail-content {
    padding: 1.5rem;
}

/* Settings Modal */
#settingsModal .modal-content {
    display: flex;
    flex-direction: column;
}

.settings-content {
    padding: 1.5rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    padding: 0 1.5rem;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    /* A scroll container in the column flexbox would otherwise shrink to nothing when a tab is tall */
    flex-shrink: 0;
}

#settingsModal .modal-header,
#settingsModal .modal-actions {
    flex-shrink: 0;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(30, 64, 175, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

.settings-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.settings-section h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Itinerary Import Styles */
.import-target-info {
    padding: 0.75rem 1rem;
    background: var(--surface-hover);
    border-radius: 0.375rem;
    color: var(--text-primary);
}

.import-banner {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 0.375rem;
    color: var(--warn-text);
    font-weight: 600;
}

.import-preview-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    background: var(--surface-hover);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    margin: 0.5rem 0;
}

.import-select-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.import-item {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.5rem;
}

.import-item-done {
    opacity: 0.6;
}

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

.import-item-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.import-item-title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.import-item-meta {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.import-item-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0 28px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.import-item details summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0.35rem 0 0 1.6rem;
}

#importSelectedBtn {
    margin-top: 0.75rem;
}

.import-check-row {
    border: 1px solid var(--border-color);
    border-left-width: 4px;
    border-radius: 0.5rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.5rem;
}

.import-check-ok {
    border-left-color: #16a34a;
}

.import-check-warning {
    border-left-color: #f59e0b;
}

.import-check-title {
    font-weight: 600;
    color: var(--text-primary);
}

.import-check-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.import-check-issue {
    color: #b45309;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

/* Trip Weather & Trip Details */
.modal-body-scroll {
    padding: 1.5rem;
    max-height: calc(90vh - 90px);
    overflow-y: auto;
}

.modal-body-scroll .form-actions {
    margin-top: 1.25rem;
}

.trip-text-view {
    white-space: pre-wrap;
    line-height: 1.6;
    color: var(--text-primary);
}

.trip-weather-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.trip-weather-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.trip-weather-list li:last-child {
    border-bottom: none;
}

.trip-weather-place {
    display: block;
    font-weight: 600;
}

.trip-weather-detail {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Recycling Bin Styles */
.recycle-type-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recycle-type-btn:hover {
    background: var(--surface-hover);
}

.recycle-type-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.recycled-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recycled-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--surface-secondary);
    transition: all 0.2s ease;
}

.recycled-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

/* Pending Users Section */
.pending-user-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--surface-color);
    gap: 2rem;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.user-details span {
    display: flex;
    align-items: center;
}

.username {
    font-weight: 500;
    color: var(--primary-color);
}

.email {
    color: var(--text-secondary);
}

.created-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 200px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: 120px;
    text-align: center;
}

/* Responsive design for pending users */
@media (max-width: 768px) {
    .pending-user-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .user-actions {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
    }
    
    .btn-sm {
        flex: 1;
        min-width: auto;
    }
}

/* User Management Section */
.user-management-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--surface-color);
    gap: 2rem;
}

.user-management-item .user-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-badge {
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.readonly-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive design for user management */
@media (max-width: 768px) {
    .user-management-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .user-management-item .user-actions {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
    }
    
    .user-management-item .btn-sm {
        flex: 1;
        min-width: auto;
    }
}

.setting-item {
    margin-bottom: 1rem;
}

.setting-item:last-child {
    margin-bottom: 0;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.setting-item input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.setting-item input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.setting-item input[readonly] {
    background-color: var(--background-color);
    color: var(--text-secondary);
}

.setting-item button {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.trip-detail-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.trip-detail-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.trip-detail-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.trip-detail-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Toasts */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    font-size: 1.25rem;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.toast-close:hover {
    background: var(--background-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .trips-container.grid-view {
        grid-template-columns: 1fr;
    }
    
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        margin: 0;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
    }
    
    .trip-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .toast {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem;
        margin: 10px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
}

/* Trip Details Screen Styles */
#tripDetailsScreen {
    --page-gutter: max(2rem, calc((100% - 1200px) / 2));
    min-height: 100vh;
    background: var(--background-color);
}

.trip-details-header {
    padding: 1.5rem var(--page-gutter) 1.25rem;
    background: var(--background-color);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 0 0.75rem -0.375rem;
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-back:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.trip-info h1 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
}

.trip-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.trip-header-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.875rem;
}

#tripTimezoneClocks {
    display: contents;
}

.timezone-coverage-help {
    display: block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.tz-clock,
.trip-weather-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 30px;
    margin: 0;
    box-sizing: border-box;
    padding: 0 0.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.tz-clock-name {
    font-weight: 500;
}

.tz-clock-time {
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.trip-weather-btn {
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--warn-text);
}

.trip-weather-btn:hover {
    background: var(--warn-bg);
    border-color: transparent;
}

.trip-details-btn {
    color: var(--primary-ink);
}

.trip-details-btn:hover {
    background: var(--primary-light);
}

/* Toolbar */
.trip-actions-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.625rem var(--page-gutter);
    background: color-mix(in srgb, var(--background-color) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.toolbar-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.toolbar-right {
    gap: 0.5rem;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    margin: 0 0.375rem;
    background: var(--border-color);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 38px;
    padding: 0 0.75rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-ghost:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.add-menu {
    position: relative;
}

.btn-primary.add-menu-btn {
    width: auto;
    height: 38px;
    padding: 0 0.75rem 0 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    box-shadow: none;
}

.add-menu-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 180px;
    padding: 0.375rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 60;
}

.add-menu-list button {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: none;
    border-radius: 8px;
    background: none;
    color: var(--text-primary);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.add-menu-list button:hover {
    background: var(--surface-hover);
}

.add-menu-list .icon {
    color: var(--text-tertiary);
}

.add-menu-list.day-add-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 900;
}

/* "Hide empty days" switch */
.switch-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    margin-right: 0.25rem;
}

.switch-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch {
    position: relative;
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: var(--border-hover);
    transition: background var(--transition-fast);
}

.switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-fast);
}

.switch-label input:checked + .switch {
    background: var(--primary-color);
}

.switch-label input:checked + .switch::after {
    transform: translateX(14px);
}

.switch-label input:focus-visible + .switch {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.trip-search-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 220px;
    height: 38px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 0.625rem;
}

.trip-search-inner:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.trip-search-icon {
    display: inline-flex;
    color: var(--text-tertiary);
}

.trip-search-inner input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.trip-search-inner input::placeholder {
    color: var(--text-tertiary);
}

.trip-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    padding: 0;
    line-height: 1;
}

.trip-search-clear:hover {
    color: var(--text-primary);
}

.trip-search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Timeline */
.trip-timeline {
    padding: 1.25rem var(--page-gutter) 3rem;
    background: var(--background-color);
    min-height: 60vh;
}

.timeline-day {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.day-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    scroll-margin-top: 80px;
    transition: background-color var(--transition-fast);
}

.day-header:hover {
    background: var(--surface-secondary);
}

.day-tile {
    width: 52px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--surface-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    color: var(--text-primary);
}

.day-tile-dow,
.day-tile-month {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
}

.day-tile-num {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.timeline-day.today .day-tile {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.timeline-day.today .day-tile * {
    color: var(--on-primary);
}

.day-tile-icon {
    color: var(--cat-reminder-text);
    background: var(--cat-reminder-bg);
    border-color: transparent;
}

.day-title-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.day-date {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.today-pill {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-ink);
}

.day-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.day-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    height: 24px;
    padding: 0 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.day-chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.day-chip.ok {
    background: var(--status-upcoming-bg);
    color: var(--status-upcoming-text);
}

.day-chip.warn {
    background: var(--warn-bg);
    color: var(--warn-text);
}

.day-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-shrink: 0;
}

.day-actions .btn-collapse .icon {
    transition: transform var(--transition-base);
}

.timeline-day.collapsed .day-actions .btn-collapse .icon {
    transform: rotate(-90deg);
}

.day-content {
    padding: 0 0.5rem 0.5rem;
    border-top: 1px solid var(--border-color);
}

.day-entries {
    display: flex;
    flex-direction: column;
    padding-top: 0.375rem;
}

.day-empty {
    padding: 0.75rem 0.75rem 0.5rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.now-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0.75rem;
    color: var(--danger-color);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.now-indicator::before,
.now-indicator::after {
    content: '';
    flex: 1;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.now-indicator::before {
    flex: 0 0 64px;
}

/* Entry rows */
.entry-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.625rem 0.75rem;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.entry-item + .entry-item {
    margin-top: 2px;
}

.entry-item:hover {
    background: var(--surface-secondary);
}

.entry-item.confirmed-trip {
    background: var(--status-upcoming-bg);
}

.entry-time-col {
    width: 64px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding-top: 0.125rem;
    line-height: 1.25;
}

.entry-time {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.entry-tz {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-cat-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cat-other-bg);
    color: var(--cat-other-text);
}

.cat-flight, .cat-ferry { background: var(--cat-flight-bg); color: var(--cat-flight-text); }
.cat-accommodation { background: var(--cat-accommodation-bg); color: var(--cat-accommodation-text); }
.cat-car-rental, .cat-car-parking, .cat-transport, .cat-transfer, .cat-mileage { background: var(--cat-car-bg); color: var(--cat-car-text); }
.cat-place-of-interest, .cat-activity, .cat-restaurant, .cat-cost { background: var(--cat-poi-bg); color: var(--cat-poi-text); }
.cat-train { background: var(--cat-train-bg); color: var(--cat-train-text); }
.cat-reminder, .cat-weather { background: var(--cat-reminder-bg); color: var(--cat-reminder-text); }
.cat-trip { background: var(--status-progress-bg); color: var(--status-progress-text); }

.entry-content {
    flex: 1;
    min-width: 0;
}

.entry-line-primary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.entry-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.entry-alert-icon {
    display: inline-flex;
    color: var(--warn-text);
}

.unconfirmed-badge {
    height: 20px;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: var(--warn-bg);
    color: var(--warn-text);
    font-size: 0.6875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.entry-line-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1px;
}

.entry-category {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-tertiary);
}

.entry-line-details {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.45;
}

.entry-line-details .detail-bullet {
    padding-left: 1em;
    text-indent: -1em;
}

.entry-line-details .detail-gap {
    height: 0.5em;
}

.entry-cost {
    flex-shrink: 0;
    padding-top: 0.125rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.entry-actions {
    display: flex;
    gap: 0.125rem;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.entry-item:hover .entry-actions,
.entry-actions:focus-within {
    opacity: 1;
}

@media (hover: none) {
    .entry-actions {
        opacity: 1;
    }
}

.entry-actions .icon-btn-sm {
    width: 30px;
    height: 30px;
}

.trip-costs-section {
    padding: 2rem;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

.trip-costs-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.cost-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-secondary);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.cost-item:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
}

.cost-name {
    font-weight: 600;
    color: var(--text-primary);
}

.cost-category {
    color: var(--text-secondary);
    font-size: 0.875rem;
    background: #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-align: center;
}

.cost-amount {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.cost-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.trip-total {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* Timeline Warning Styles */
.timeline-warning {
    background: var(--warn-bg);
    border: 1px solid var(--warning-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px -1px rgba(245, 158, 11, 0.3);
}

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

.warning-close-btn {
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.warning-close-btn:hover {
    background: #d97706;
    transform: scale(1.1);
}

.timeline-warning h3 {
    color: var(--warn-text);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.timeline-warning p {
    color: var(--warn-text);
    margin-bottom: 1rem;
}

.timeline-warning ul {
    color: var(--warn-text);
    margin-left: 1rem;
}

.timeline-warning li {
    margin-bottom: 0.25rem;
}

/* Pre-Trip and Post-Trip Styles */
.timeline-day.pre-trip,
.timeline-day.post-trip {
    border-style: dashed;
}

.pre-trip-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0.75rem 0 0.25rem;
}

.pre-trip-date:first-child {
    margin-top: 0;
}

/* Reports Modal Styles */
.reports-modal {
    max-width: 800px;
    padding: 0;
}

.reports-content {
    padding: 2rem;
    display: grid;
    gap: 2rem;
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.report-option {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.report-option:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.report-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--color-bar-width);
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px 0 0 4px;
}

.report-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.report-option h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.report-option p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.report-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.report-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    font-size: 1.2rem;
}

.report-filters {
    background: var(--surface-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

/* Date Range Styles */
.report-date-range {
    background: var(--surface-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.report-date-range h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.date-range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.date-input-group {
    display: flex;
    flex-direction: column;
}

.date-input-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.date-input {
    padding: 0.75rem;
    border: 2px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background: var(--surface-color);
}

.date-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.date-range-help {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    font-style: italic;
}

/* Responsive date range styles */
@media (max-width: 768px) {
    .date-range-inputs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .report-date-range {
        padding: 1rem;
    }
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* Responsive checkbox group styling */
@media (max-width: 768px) {
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .checkbox-group .checkbox-label {
        background: #f8f9fa;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        border: 1px solid var(--border-color);
        transition: background-color 0.2s;
    }
    
    .checkbox-group .checkbox-label:active {
        background: #e2e8f0;
    }
}

/* Form Styles for Trip Details */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.conditional-fields {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--surface-secondary);
    border-radius: 0.375rem;
}

.conditional-fields.hidden {
    display: none;
}

/* Sanity Check Modal Styles */
.sanity-check-content {
    padding: 1rem;
}

.sanity-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #cbd5e1;
}

.sanity-summary h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-radius: 0.375rem;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    transition: all 0.2s;
}

.stat-item.critical {
    border-color: #ef4444;
    background: #fef2f2;
}

.stat-item.warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.stat-item.success {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-item.critical .stat-number {
    color: #ef4444;
}

.stat-item.warning .stat-number {
    color: #f59e0b;
}

.stat-item.success .stat-number {
    color: var(--success-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sanity-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sanity-section {
    background: var(--surface-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title.has-issues {
    color: #dc2626;
}

.section-title.no-issues {
    color: #166534;
}

.section-description {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.issues-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.issue-item {
    padding: 1rem;
    border-radius: 0.375rem;
    border-left: 4px solid;
}

.issue-item.critical {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.issue-item.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.issue-message {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.issue-item.critical .issue-message {
    color: #dc2626;
}

.issue-item.warning .issue-message {
    color: #d97706;
}

.issue-suggestion {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.no-issues {
    text-align: center;
    padding: 2rem;
    color: #166534;
    font-weight: 500;
    background: #f0fdf4;
    border-radius: 0.375rem;
    border: 1px solid #bbf7d0;
}

/* Trip Map Modal Styles */
.map-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    height: calc(80vh - 120px);
}

.map-route-info {
    background: var(--surface-secondary);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-y: auto;
}

.map-route-info h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
}

.route-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.route-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--surface-color);
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.route-step:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.route-step.airport {
    border-left: 4px solid #ef4444;
}

.route-step.accommodation {
    border-left: 4px solid var(--primary-color);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.route-step.airport .step-number {
    background: #ef4444;
}

.step-info {
    flex: 1;
    min-width: 0;
}

.step-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.step-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.step-location {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

.map-container {
    background: #f3f4f6;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.map-container #tripMap {
    border-radius: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .map-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: calc(80vh - 80px);
    }
    
    .map-route-info {
        max-height: 200px;
    }
    
    .map-container #tripMap {
        height: 300px;
    }
}

/* AI Search Modal Styles */
.ai-search-content {
    padding: 1rem;
    height: calc(85vh - 120px);
    overflow-y: auto;
}

.search-context {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #bae6fd;
}

.search-context h3 {
    margin: 0 0 1rem 0;
    color: #0c4a6e;
    font-size: 1.125rem;
    font-weight: 600;
}

.context-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.context-item {
    background: var(--surface-color);
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #e0f2fe;
}

.context-item strong {
    color: #0c4a6e;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.result-category {
    background: var(--surface-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-title {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.suggestions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.suggestion-item {
    background: var(--surface-secondary);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.suggestion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.suggestion-item.high {
    border-left: 4px solid #ef4444;
}

.suggestion-item.medium {
    border-left: 4px solid #f59e0b;
}

.suggestion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.suggestion-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}

.priority-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: 0.5rem;
}

.priority-badge.high {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.priority-badge.medium {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.suggestion-description {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
}

.suggestion-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-search, .btn-add {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-search {
    background: var(--primary-color);
    color: white;
}

.btn-search:hover {
    background: var(--primary-hover);
}

.btn-add {
    background: var(--success-color);
    color: white;
}

.btn-add:hover {
    background: #047857;
}

/* Responsive adjustments for AI Search */
@media (max-width: 768px) {
    .ai-search-content {
        height: calc(85vh - 100px);
    }
    
    .context-info {
        grid-template-columns: 1fr;
    }
    
    .suggestions-list {
        grid-template-columns: 1fr;
    }
    
    .suggestion-actions {
        flex-direction: column;
    }
    
    .btn-search, .btn-add {
        width: 100%;
        justify-content: center;
    }
}

/* Attachment Management System Styles */
.attachment-manager {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--surface-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

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

.attachment-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.btn-add-attachment {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-add-attachment:hover {
    background: #1e40af;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attachment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--surface-color);
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.attachment-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.attachment-item.new-attachment {
    border-left: 4px solid var(--success-color);
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.attachment-icon {
    font-size: 1rem;
}

.attachment-name {
    font-weight: 500;
    color: var(--text-primary);
}

.attachment-size {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: 0.5rem;
}

.attachment-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-remove-attachment {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-remove-attachment:hover {
    background: #dc2626;
}

/* Calendar Styles */
.calendar-modal {
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.calendar-content {
    padding: 20px;
}

.calendar-page {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: var(--surface-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 15px;
}

.calendar-header h3 {
    font-size: 28px;
    margin: 0;
    color: #333;
    font-weight: 600;
}

.calendar-trip-info {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.trip-name {
    font-weight: 500;
    color: #1e40af;
}

.calendar-grid {
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 8px;
}

.weekday {
    background: var(--surface-secondary);
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.calendar-day {
    min-height: 120px;
    border: 1px solid var(--border-color);
    padding: 6px;
    position: relative;
    background: var(--surface-color);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-day:hover {
    background: var(--surface-secondary);
}

.calendar-day.empty {
    background: var(--surface-secondary);
    opacity: 0.5;
}

.calendar-day.trip-day {
    background: #fef3c7;
    border-color: #f59e0b;
}

.calendar-day.has-entries {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.day-number {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-secondary);
    flex-shrink: 0;
    text-align: center;
    background: rgba(255,255,255,0.8);
    border-radius: 3px;
    padding: 2px 4px;
}

.calendar-page .day-entries {
    font-size: 10px;
    flex: 1;
    overflow-y: auto;
    max-height: 90px;
}

.calendar-entry {
    margin-bottom: 3px;
    padding: 3px 5px;
    border-radius: 3px;
    font-size: 9px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    min-height: 18px;
    line-height: 1.2;
}

.flight-entry {
    background: var(--primary-light);
    color: #1e40af;
    border-left: 3px solid var(--primary-color);
}

.accommodation-entry {
    background: #f3e8ff;
    color: #7c3aed;
    border-left: 3px solid #8b5cf6;
}

.entry-icon {
    margin-right: 4px;
    font-size: 12px;
}

.entry-name {
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    word-break: break-word;
}

.calendar-actions {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--surface-secondary);
}

.calendar-actions .btn-primary {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-icon {
    margin-right: 8px;
}

/* Responsive calendar sizing */
@media (max-width: 1200px) {
    .calendar-day {
        min-height: 100px;
    }
    
    .calendar-page .day-entries {
        max-height: 70px;
    }
}

@media (max-width: 768px) {
    .calendar-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .calendar-page .day-entries {
        max-height: 60px;
    }
    
    .calendar-entry {
        font-size: 8px;
        padding: 2px 3px;
        min-height: 16px;
    }
    
    .entry-icon {
        font-size: 10px;
    }
}

/* Print styles for calendar */
@media print {
    .calendar-page {
        page-break-after: always;
        margin: 0;
        border: none;
        box-shadow: none;
        padding: 15px;
    }
    
    .calendar-header h3 {
        font-size: 24px;
    }
    
    .calendar-day {
        min-height: 100px;
        padding: 4px;
    }
    
    .day-number {
        font-size: 12px;
    }
    
    .calendar-page .day-entries {
        max-height: 80px;
    }
    
    .calendar-entry {
        font-size: 8px;
        padding: 2px 3px;
        min-height: 16px;
    }
    
    .entry-name {
        font-size: 8px;
    }
    
    .entry-icon {
        font-size: 10px;
    }
}

/* Photo Input Styles */
.photo-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.photo-input-container button {
    width: 100%;
    padding: 0.75rem;
}

.photo-preview {
    margin-top: 0.5rem;
    display: none;
}

.photo-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.photo-preview.has-image {
    display: block;
}

/* ============================================================
   Interesting Places
   ============================================================ */

.places-section {
    padding: 1rem;
}

.places-back-nav {
    margin-bottom: 0.5rem;
}

.places-back-btn {
    background: none;
    border: none;
    color: var(--primary-color, #3b82f6);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0;
}

.places-back-btn:hover {
    text-decoration: underline;
}

.places-container {
    margin-top: 1rem;
    overflow-x: auto;
}

.places-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.places-th {
    padding: 0.6rem 0.875rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary, #6b7280);
    border-bottom: 2px solid var(--border-color);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.places-th:hover {
    color: var(--text-primary, #111);
}

.places-th-active {
    color: var(--primary-color, #3b82f6);
}

.places-th-actions {
    cursor: default;
    width: 1%;
}

.places-row {
    cursor: pointer;
    transition: background 0.1s;
}

.places-row:hover {
    background: var(--surface-hover, #f9fafb);
}

.places-row-shared {
    cursor: default;
}

.place-shared-by {
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
    white-space: nowrap;
}

.places-row:not(:last-child) .places-td {
    border-bottom: 1px solid var(--border-color);
}

.places-td {
    padding: 0.625rem 0.875rem;
    vertical-align: top;
}

.places-td-name {
    font-weight: 500;
}

.places-td-notes {
    font-size: 0.8rem;
    color: var(--text-secondary, #6b7280);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.places-td-date {
    font-size: 0.8rem;
    color: var(--text-secondary, #6b7280);
    white-space: nowrap;
}

.places-td-actions {
    white-space: nowrap;
    text-align: right;
}

.place-web-link {
    font-size: 1rem;
    text-decoration: none;
    margin-right: 4px;
}

.place-add-to-trip-btn {
    padding: 0.25rem 0.625rem;
    font-size: 0.8rem;
    white-space: nowrap;
    margin-right: 4px;
}


#placesBtn.active {
    background: var(--accent-color, #3b82f6);
    color: #fff;
    border-color: var(--accent-color, #3b82f6);
}

.place-has-photo {
    font-size: 0.9rem;
    margin-right: 4px;
}

.places-country-header {
    cursor: pointer;
    user-select: none;
    background: var(--surface-color, #f8f9fa);
}

.places-country-header:hover {
    background: var(--hover-color, #e9ecef);
}

.places-country-cell {
    padding: 8px 12px;
    font-size: 0.95rem;
}

.places-country-arrow {
    display: inline-block;
    width: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary, #666);
}

.places-country-count {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary, #666);
    font-weight: normal;
}

.place-attachment-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    cursor: pointer;
}


/* ============================================================
   Visual refresh (v7.39): shared pieces, dark-mode fixes, mobile
   ============================================================ */

.icon {
    flex-shrink: 0;
    display: block;
}

[data-icon] {
    display: inline-flex;
    align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    font-family: inherit;
    border-radius: 10px;
}

.btn-primary {
    color: var(--on-primary);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover,
.btn-primary:active {
    box-shadow: none;
}

.btn-secondary {
    box-shadow: none;
}

h1, h2, h3,
.modal-header h2 {
    font-family: var(--font-display);
    letter-spacing: -0.015em;
}

input, select, textarea, button {
    font-family: inherit;
}

.modal-header::before {
    background: var(--border-hover);
}

.places-back-nav {
    display: none;
}

.places-section {
    padding: 0;
}

/* Inline colours set from app.js assume a light background; soften them in dark mode */
[data-theme="dark"] [style*="color: #666"],
[data-theme="dark"] [style*="color:#666"],
[data-theme="dark"] [style*="color: #6b7280"],
[data-theme="dark"] [style*="color:#6b7280"],
[data-theme="dark"] [style*="color: #64748b"],
[data-theme="dark"] [style*="color:#64748b"],
[data-theme="dark"] [style*="color: #9ca3af"],
[data-theme="dark"] [style*="color: #555"] {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] [style*="color: #1e293b"],
[data-theme="dark"] [style*="color:#1e293b"],
[data-theme="dark"] [style*="color: #333"],
[data-theme="dark"] [style*="color:#333"],
[data-theme="dark"] [style*="color: #111"] {
    color: var(--text-primary) !important;
}

[data-theme="dark"] [style*="background: #f8fafc"],
[data-theme="dark"] [style*="background:#f8fafc"],
[data-theme="dark"] [style*="background: #f8f9fa"],
[data-theme="dark"] [style*="background:#f8f9fa"],
[data-theme="dark"] [style*="background: #f9fafb"],
[data-theme="dark"] [style*="background: #f3f4f6"],
[data-theme="dark"] [style*="background: #fff;"],
[data-theme="dark"] [style*="background:#fff;"],
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background-color: white"] {
    background: var(--surface-secondary) !important;
}

[data-theme="dark"] [style*="background: #fef3c7"],
[data-theme="dark"] [style*="background:#fef3c7"] {
    background: var(--warn-bg) !important;
    color: var(--warn-text) !important;
}

[data-theme="dark"] [style*="border: 1px solid #e"],
[data-theme="dark"] [style*="border-bottom: 1px solid #e"],
[data-theme="dark"] [style*="border-top: 1px solid #e"] {
    border-color: var(--border-color) !important;
}

@media print {
    .app-header,
    .trip-actions-bar,
    .entry-actions,
    .day-actions {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .toolbar-right {
        width: 100%;
    }

    .trip-search-inner {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
        gap: 0.75rem;
    }

    .brand-name,
    .app-version,
    .header-actions .btn-label {
        display: none;
    }

    .header-actions {
        gap: 0.25rem;
    }

    .header-actions > .btn-primary {
        width: 36px;
        height: 36px;
        padding: 0;
        margin-right: 0;
    }

    .header-actions .icon-btn {
        width: 36px;
        height: 36px;
    }

    .nav-tab {
        padding-left: 0.625rem;
        padding-right: 0.625rem;
    }

    .day-date {
        font-size: 0.9375rem;
    }

    .day-chips {
        gap: 0.25rem;
    }

    #tripDetailsScreen {
        --page-gutter: 1rem;
    }

    .trip-info h1 {
        font-size: 1.75rem;
    }

    .trip-actions-bar {
        position: static;
    }

    .toolbar-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
        scrollbar-width: none;
    }

    .toolbar-group:first-child {
        overflow: visible;
        flex-wrap: wrap;
    }

    .toolbar-right .btn-label {
        display: none;
    }

    .featured-trip {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .featured-side {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .search-container {
        max-width: none;
    }

    .day-header {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .day-tile {
        width: 46px;
        height: 50px;
    }

    .entry-item {
        flex-wrap: wrap;
        gap: 0.625rem;
        padding: 0.625rem 0.5rem;
    }

    .entry-time-col {
        width: 48px;
    }

    .entry-content {
        flex-basis: calc(100% - 110px);
    }

    .entry-cost {
        margin-left: 106px;
        padding-top: 0;
    }

    .entry-actions {
        margin-left: auto;
    }
}
