@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;600;700;800&display=swap');

/* ==================== CSS VARIABLES ====================*/
:root {
    /* Modern Professional Color Palette */
    --primary: #0F172A;           /* Deep navy blue */
    --primary-light: #1E293B;     /* Lighter navy */
    --primary-dark: #0C0E16;      /* Darker navy */
    
    --secondary: #06B6D4;         /* Cyan accent */
    --secondary-light: #22D3EE;   /* Light cyan */
    --secondary-dark: #0891B2;    /* Dark cyan */
    
    --accent: #8B5CF6;            /* Purple accent */
    --accent-light: #A78BFA;      /* Light purple */
    
    --success: #10B981;           /* Emerald green */
    --danger: #EF4444;            /* Red */
    --warning: #F59E0B;           /* Amber */
    
    --bg-base: #FFFFFF;           /* White */
    --bg-secondary: #F8FAFC;      /* Very light gray */
    --bg-tertiary: #E2E8F0;       /* Light gray */
    
    --text-primary: #0F172A;      /* Dark navy (main text) */
    --text-secondary: #64748B;    /* Gray blue (secondary text) */
    --text-light: #94A3B8;        /* Light gray (muted text) */
    
    --border: #E2E8F0;            /* Light border */
    --border-dark: #CBD5E1;       /* Darker border */
    
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ==================== RESET & BASE ====================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    background-attachment: fixed;
}

body {
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-top: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-dark);
}

/* ==================== NAVBAR ====================*/
.navbar {
    background: var(--bg-base) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    padding: 1rem 0 !important;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}

.navbar-text {
    color: var(--text-secondary) !important;
    font-weight: 500;
}

/* Bootstrap navbar overrides */
.navbar-dark {
    background-color: var(--bg-base) !important;
}

.navbar-dark .navbar-brand {
    color: var(--primary) !important;
}

.navbar-dark .navbar-text {
    color: var(--text-secondary) !important;
}

.btn-outline-light {
    color: var(--text-primary) !important;
    border-color: var(--border) !important;
}

.btn-outline-light:hover {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-dark) !important;
    color: var(--primary) !important;
}

/* Modern navbar styling */
.navbar-modern {
    background: white !important;
    border-bottom: none !important;
    border-top: none !important;
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.08) !important;
    padding: 0 !important;
    height: auto !important;
}

.navbar-modern.navbar {
    background-color: white !important;
}

.navbar-container-integrated {
    display: flex !important;
    align-items: center !important;
    padding: 0 1rem !important;
    gap: 0 !important;
    flex-wrap: wrap !important;
    height: 56px !important;
}

.navbar-brand-modern {
    font-family: 'Poppins', sans-serif !important;
    color: #0F172A !important;
    letter-spacing: -0.5px;
    margin-right: 0;
    white-space: normal;
    flex-shrink: 0;
    padding-right: 24px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand-icon {
    border-radius: 6px;
    flex-shrink: 0;
}

.navbar-brand-full {
    display: inline;
    line-height: 1.2;
}

.navbar-brand-line-1 {
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    color: #E07856 !important;
    text-transform: uppercase;
    letter-spacing: -1px !important;
    display: inline-block !important;
    margin-right: 0.25rem !important;
    line-height: 1 !important;
}

.navbar-brand-line-2 {
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    color: #2D2D2D !important;
    text-transform: uppercase !important;
    letter-spacing: -1px !important;
    display: inline-block !important;
    margin-right: 0.25rem !important;
    line-height: 1 !important;
}

.navbar-brand-line-3 {
    font-weight: 100 !important;
    font-size: 1.3rem !important;
    color: #2D2D2D !important;
    text-transform: uppercase !important;
    letter-spacing: -1px !important;
    display: inline-block !important;
    line-height: 1 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Ensure parent brand styles don't override line-specific styles */
.navbar-brand-modern .navbar-brand-line-3 {
    font-weight: 100 !important;
}

.navbar-brand .navbar-brand-full .navbar-brand-line-3 {
    font-weight: 100 !important;
}

/* Vertical layout variant (for sidebar/areas with vertical space) */
.navbar-brand-full.vertical {
    display: block !important;
    width: fit-content !important;
    margin: 0 auto 2rem auto !important;
}

.navbar-brand-full.vertical .navbar-brand-line-1,
.navbar-brand-full.vertical .navbar-brand-line-2,
.navbar-brand-full.vertical .navbar-brand-line-3 {
    display: block !important;
    margin-right: 0 !important;
    line-height: 0.9;
    margin: 0;
    padding: 0;
    font-size: 2.5rem !important;
    text-align: left !important;
    font-size: 2.5rem !important;
}
}

.navbar-brand-short {
    display: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    letter-spacing: -1px !important;
    white-space: nowrap;
}

.navbar-brand-short-r {
    color: #E07856 !important;
    font-weight: 700 !important;
}

.navbar-brand-short-d {
    color: #2D2D2D !important;
    font-weight: 700 !important;
}

.navbar-brand-short-p {
    color: #2D2D2D !important;
    font-weight: 100 !important;
}

/* Show short brand on mobile */
@media (max-width: 768px) {
    .navbar-brand-full {
        display: none !important;
        visibility: hidden !important;
    }
    
    .navbar-brand-short {
        display: inline !important;
        visibility: visible !important;
    }
}

/* Hide short brand on larger screens */
@media (min-width: 769px) {
    .navbar-brand-full {
        display: inline !important;
        visibility: visible !important;
    }
    
    .navbar-brand-short {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

/* Hamburger menu */
.navbar-toggler {
    padding: 0 !important;
    border: none !important;
    cursor: pointer !important;
    display: block !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: none;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230F172A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center;
    background-size: 100%;
}

.nav-tabs-integrated {
    border: none !important;
    border-bottom: 1px solid transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    flex: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto;
}

.nav-tabs-integrated .nav-item {
    margin: 0 !important;
}

.nav-tabs-integrated .nav-link {
    color: var(--text-primary) !important;
    border: none !important;
    background: transparent !important;
    padding: 8px 14px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    transition: all 0.2s ease !important;
    border-radius: 4px !important;
    margin: 0 4px !important;
    position: relative;
}

.nav-tabs-integrated .nav-link:hover {
    color: var(--text-primary) !important;
    background: transparent !important;
}

.nav-tabs-integrated .nav-link.active {
    color: white !important;
    border: none !important;
    background: var(--secondary) !important;
    font-weight: 700 !important;
}

.tab-pane {
    margin-top: 1.5rem;
    display: none !important;
}

.tab-pane.show {
    display: block !important;
}

.navbar-right {
    flex-shrink: 0;
    margin-left: auto;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding-left: 24px !important;
}

.navbar-logout-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0.375rem 0.5rem !important;
    min-width: 36px;
}

.navbar-logout-btn i {
    font-size: 18px;
}

.navbar-text-modern {
    color: #64748B !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Responsive design */
@media (max-width: 992px) {
    .navbar-container-integrated {
        gap: 12px !important;
    }
    
    /* Hide menu, show hamburger on small screens */
    .navbar-toggler {
        display: block !important;
    }
    
    .nav-tabs-integrated {
        display: none !important;
        flex: none;
        order: 2;
    }
    
    .nav-tabs-integrated.show {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1);
        flex-direction: column;
        padding: 8px 16px;
        margin-top: 4px;
        z-index: 1000;
    }
    
    .nav-tabs-integrated.show .nav-link {
        padding: 8px 12px !important;
        font-size: 10px !important;
        margin: 0 2px !important;
    }
}

@media (min-width: 993px) {
    /* Show menu, hide hamburger on large screens */
    .navbar-toggler {
        display: none !important;
    }
    
    .nav-tabs-integrated {
        display: flex !important;
    }
}

/* ==================== MAIN CONTENT AREA ====================*/
.container-fluid {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.tab-content {
    padding: 2rem 0;
}

/* ==================== CARDS ====================*/
.card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    background: var(--bg-base) !important;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md) !important;
    border-color: var(--secondary-light) !important;
}

.card-header {
    background-color: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    font-weight: 600;
    color: var(--text-primary) !important;
}

.card-header.bg-success {
    background-color: var(--success) !important;
}

.card-header.bg-primary {
    background-color: var(--primary) !important;
}

.card-header.bg-danger {
    background-color: var(--danger) !important;
}

.card-header.bg-warning {
    background-color: var(--warning) !important;
}

.card-body {
    padding: 1.5rem !important;
}

/* ==================== BUTTONS ====================*/
.btn {
    font-weight: 600;
    border-radius: var(--radius-md) !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
    border: none !important;
    font-size: 14px;
    cursor: pointer !important;
}

.btn-primary {
    background-color: var(--secondary) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25) !important;
}

.btn-primary:hover {
    background-color: var(--secondary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35) !important;
}

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

.btn-success {
    background-color: var(--success) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
}

.btn-success:hover {
    background-color: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

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

.btn-danger {
    background-color: var(--danger) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25) !important;
}

.btn-danger:hover {
    background-color: #DC2626 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35) !important;
}

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

.btn-secondary {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.btn-secondary:hover {
    background-color: var(--border-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.btn-outline-primary {
    color: var(--secondary) !important;
    border: 2px solid var(--secondary) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background-color: rgba(6, 182, 212, 0.1) !important;
    color: var(--secondary-dark) !important;
    border-color: var(--secondary-dark) !important;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2) !important;
}

.btn-outline-primary:active {
    background-color: rgba(6, 182, 212, 0.2) !important;
}

.btn-outline-secondary {
    color: var(--text-secondary) !important;
    border: 2px solid var(--border-dark) !important;
    background: transparent !important;
}

.btn-outline-secondary:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--text-secondary) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.btn-light {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.btn-light:hover {
    background-color: white !important;
    border-color: var(--secondary-light) !important;
    box-shadow: 0 2px 6px rgba(6, 182, 212, 0.15) !important;
}

.btn-no-changes {
    background-color: #F0F0F0 !important;
    color: #9E9E9E !important;
    border-color: #E0E0E0 !important;
    cursor: not-allowed !important;
}

.btn-sm {
    padding: 0.375rem 0.75rem !important;
    font-size: 13px !important;
}

/* ==================== FORMS ====================*/
.form-control, .form-select, textarea {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    background-color: var(--bg-base) !important;
    color: var(--text-primary) !important;
    font-size: 14px;
    padding: 0.625rem 0.875rem !important;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus, textarea:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1) !important;
    outline: none;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.form-control-sm {
    padding: 0.5rem 0.75rem !important;
    font-size: 13px !important;
    max-width: none !important;
    width: auto !important;
}

/* Date and Time Inputs */
input[type="date"],
input[type="time"] {
    cursor: pointer !important;
    font-size: 14px !important;
    padding: 0.5rem 0.75rem !important;
}

input[type="date"] {
    padding-right: 2.5rem !important;
}

input[type="date"].event-input,
input[type="time"].event-input {
    padding: 0.5rem 0.75rem !important;
}

input[type="date"].event-input {
    padding-right: 2.5rem !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer !important;
    width: 1.2rem !important;
    height: 1.2rem !important;
    opacity: 1 !important;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer !important;
    width: 1.2rem !important;
    height: 1.2rem !important;
    opacity: 1 !important;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="time"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1 !important;
}

input[type="date"]:focus,
input[type="time"]:focus {
    outline: none !important;
    border: 2px solid var(--secondary) !important;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2) !important;
    background-color: rgba(6, 182, 212, 0.03) !important;
}

/* ==================== TABLES ====================*/
.table {
    background-color: var(--bg-base);
}

.table thead {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--border);
}

.table thead th {
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--bg-secondary);
}

.table tbody td {
    padding: 0.875rem 0.75rem;
    color: var(--text-primary);
}

.table-sm td, .table-sm th {
    padding: 0.625rem 0.5rem !important;
}

/* ==================== MODALS ====================*/
.modal-content {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xl) !important;
    background-color: var(--bg-base) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border) !important;
    background-color: var(--bg-secondary) !important;
}

.modal-header.bg-success {
    background-color: var(--success) !important;
}

.modal-header.bg-primary {
    background-color: var(--primary) !important;
}

.modal-header.bg-danger {
    background-color: var(--danger) !important;
}

.modal-title {
    font-weight: 600;
    color: var(--text-primary) !important;
}

.modal-header.bg-success .modal-title,
.modal-header.bg-primary .modal-title,
.modal-header.bg-danger .modal-title {
    color: var(--bg-base) !important;
}

.btn-close {
    opacity: 0.6;
}

.btn-close:hover {
    opacity: 1;
}

/* ==================== FOOTER ====================*/
.footer-modern {
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%);
    background-attachment: fixed;
    padding: 1.5rem 0;
    margin-top: 3rem;
    color: white;
}

.footer-modern small {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.footer-modern a {
    color: var(--secondary);
    transition: color 0.2s ease;
}

.footer-modern a:hover {
    color: #06a5be;
}

/* ==================== ALERTS ====================*/
.alert {
    border-radius: var(--radius-md) !important;
    border: 1px solid;
    padding: 0.875rem 1.125rem;
}

.alert-success {
    background-color: #ECFDF5 !important;
    border-color: #A7F3D0 !important;
    color: #065F46 !important;
}

.alert-danger {
    background-color: #FEF2F2 !important;
    border-color: #FECACA !important;
    color: #7F1D1D !important;
}

.alert-warning {
    background-color: #FFFBEB !important;
    border-color: #FCD34D !important;
    color: #78350F !important;
}

.alert-info {
    background-color: #F0F9FF !important;
    border-color: #BAE6FD !important;
    color: #0C2D48 !important;
}

/* ==================== BADGES ====================*/
.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    color: #000;
    white-space: nowrap;
    display: inline-block;
}

.badge.bg-success {
    background-color: var(--success) !important;
}

.badge.bg-danger {
    background-color: var(--danger) !important;
}

/* ==================== EVENT CARDS ====================*/
.event-card {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.event-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-light);
}

.event-card.selected {
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.event-card.new-event-card {
    border: 2px solid var(--secondary) !important;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%) !important;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15) !important;
}

.event-card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.event-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.event-title-input {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
}

.event-title-input:focus {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
    border-radius: 0.25rem;
    padding: 0 0.25rem !important;
}

.event-title-display {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
    cursor: default;
}

.event-title-edit-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.event-edit-title-btn {
    padding: 0.25rem 0.5rem !important;
    color: var(--text-light);
    border-color: var(--border) !important;
}

.event-edit-title-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border-color: var(--secondary) !important;
}

.event-card-3col-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

.event-card-2col-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

.event-card-5col-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
    width: 100% !important;
    max-width: none !important;
}

.event-field-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    min-width: 0 !important;
    width: 100% !important;
}

.event-field-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-input {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-base);
    transition: all 0.2s ease;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

.event-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
    background-color: var(--bg-secondary);
}

.event-input::placeholder {
    color: var(--text-light);
}

select.event-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.event-card-footer {
    display: flex !important;
    gap: 0.75rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid var(--border) !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.event-card-footer .btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    width: auto !important;
    display: inline-block !important;
}

/* ==================== RESPONSIVE ====================*/
@media (max-width: 1200px) {
    .event-card-5col-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .event-card {
        padding: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }
    
    .event-card-3col-grid {
        grid-template-columns: 1fr !important;
    }
    
    .event-card-2col-grid {
        grid-template-columns: 1fr !important;
    }
    
    .event-card-5col-grid {
        grid-template-columns: 1fr !important;
    }
    
    .form-control,
    .form-select,
    .event-input,
    input[type="date"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
    }
    
    input[type="time"] {
        width: 100% !important;
        max-width: 200px !important;
        padding: 0.375rem 0.5rem !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
    }
    
    .navbar {
        padding: 0.75rem 0 !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 13px !important;
    }
}

/* ==================== UTILITY ====================*/
.text-muted {
    color: var(--text-light) !important;
}

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

.bg-light {
    background-color: var(--bg-secondary) !important;
}

.border {
    border-color: var(--border) !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* ==================== SCROLL ====================*/
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4, h5 { font-size: 1rem; }
}

@media (max-width: 600px) {
    .event-card-3col-grid {
        grid-template-columns: 1fr !important;
    }
    
    .event-card-2col-grid {
        grid-template-columns: 1fr !important;
    }
    
    .event-card-5col-grid {
        grid-template-columns: 1fr !important;
    }
    
    .form-control,
    .form-select,
    .event-input,
    input[type="time"],
    input[type="date"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ==================== DASHBOARD CARDS & LAYOUT ====================*/

/* ==================== TABLE COLUMN WIDTHS ====================*/
.col-naam { width: 110px; }
.col-datum { width: 85px; }

/* ==================== TEXT UTILITIES (used in participant portal) ====================*/
.text-14 { font-size: 14px !important; }
.text-16 { font-size: 16px !important; }
.text-color-333 { color: #333 !important; }
.text-color-666 { color: #666 !important; }
.font-600 { font-weight: 600 !important; }

/* ==================== PARTICIPANT CARDS ====================*/
.participant-card {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.participant-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-light);
}

.participant-card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.participant-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.participant-card-2col-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

.participant-card-3col-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

.participant-field-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
    min-width: 0 !important;
    width: 100% !important;
}

.participant-field-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.participant-display-field {
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    word-break: break-word;
}

.participant-card-footer {
    display: flex !important;
    gap: 0.75rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid var(--border) !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

.participant-card-footer .btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    width: auto !important;
    display: inline-block !important;
}

.participant-cards-stack {
    display: flex;
    flex-direction: column;
}

/* ==================== MODERN TABLE STYLING ====================*/
.modern-table-container {
    overflow-x: auto;
}

.modern-table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    width: 100%;
    min-width: auto;
    table-layout: fixed;
    font-size: 13px !important;
    border-bottom: 2px solid var(--border-dark);
    background-color: transparent;
}

.modern-table thead {
    background-color: var(--bg-secondary);
    border-bottom: 2px solid var(--border-dark);
}

.modern-table thead th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.5rem;
    border: none;
    user-select: none;
    position: sticky;
    top: 0;
    background-color: var(--bg-secondary);
    z-index: 10;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modern-table thead th.sortable {
    cursor: pointer;
}

.modern-table thead th.sortable:hover {
    background-color: var(--bg-tertiary);
}

/* Naam column stays pinned to the left while the table scrolls horizontally */
.modern-table thead th:first-child,
.modern-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    /* Opaque flat color matching the .modern-table-frame gradient tint (needs to stay
       solid, not the gradient itself, so scrolled columns can't show through it). */
    background-color: #f4fafd !important;
}

.modern-table thead th:first-child {
    z-index: 15;
    background-color: var(--bg-secondary) !important;
}

.modern-table thead th:first-child:hover {
    background-color: var(--bg-tertiary) !important;
}

.modern-table tbody tr:hover td:first-child {
    background-color: var(--bg-secondary) !important;
}

/* Center headers for specific columns */
.access-code-header,
.actions-header {
    text-align: center !important;
}

.modern-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
    height: 38px;
    background-color: transparent;
}

.modern-table tbody tr:hover {
    background-color: var(--bg-secondary);
    box-shadow: inset 0 0 8px rgba(6, 182, 212, 0.08);
}

.modern-table tbody td {
    padding: 0.5rem 0.5rem;
    color: var(--text-primary);
    font-size: 13px !important;
    border: none;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    background-color: transparent !important;
}

/* Naam kolom - geen wrap */
.name-cell {
    white-space: nowrap !important;
    overflow: hidden !important;
    max-width: 150px !important;
    font-size: 13px !important;
}

/* Email, Phone, Address columns - truncate with ellipsis and show on hover */
.email-cell,
.phone-cell,
.address-cell,
.dietary-cell {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Access Code - center aligned */
.access-code-cell {
    text-align: center !important;
    white-space: nowrap !important;
    font-weight: 400 !important;
}

/* Exclusions column - ensure visibility */
.exclusions-cell {
    text-align: center !important;
    white-space: nowrap !important;
    overflow: visible !important;
    min-width: 50px;
    font-weight: 400 !important;
    position: relative;
}

/* Actions column - center aligned */
.actions-cell {
    text-align: center !important;
    overflow: visible !important;
    white-space: normal !important;
    min-width: 80px;
}

.actions-cell > div {
    overflow: visible !important;
}

/* Participant action bar: resting buttons get a lighter tint of their active background; font stays as in active state */
.participants-card .card-header .btn-outline-info,
.participants-card .card-header .btn-outline-success,
.participants-card .card-header .btn-outline-warning,
.participants-card .card-header .btn-outline-danger {
    color: #fff;
}
.participants-card .card-header .btn-outline-info { background-color: #6ed8f4; border-color: #6ed8f4; }
.participants-card .card-header .btn-outline-success { background-color: #5fb38a; border-color: #5fb38a; }
.participants-card .card-header .btn-outline-warning { background-color: #ffd65c; border-color: #ffd65c; }
.participants-card .card-header .btn-outline-danger { background-color: #e8737e; border-color: #e8737e; }
.participants-card .card-header .btn-outline-info:hover { background-color: #0dcaf0; border-color: #0dcaf0; }
.participants-card .card-header .btn-outline-success:hover { background-color: #198754; border-color: #198754; }
.participants-card .card-header .btn-outline-warning:hover { background-color: #ffc107; border-color: #ffc107; }
.participants-card .card-header .btn-outline-danger:hover { background-color: #dc3545; border-color: #dc3545; }

/* Larger checkboxes for row selection and the cook-role fields */
.participant-checkbox,
#selectAllParticipants,
#participantEditSlider .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
}

/* Show tooltip only for cells with class 'has-overflow' and data-title attribute */
.modern-table tbody td {
    position: relative;
}

.modern-table tbody td.has-overflow[data-title]:hover::after {
    content: attr(data-title);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    z-index: 100;
    font-size: 12px;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border: none;
}

/* Exclusions and dietary wishes: single-line span that ellipsizes, full text in the hover popup */
.value-tooltip {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: default;
}

/* Tooltip for exclusion count */
.exclusions-cell span.exclusion-tooltip {
    cursor: default !important;
}

.exclusions-cell span.exclusion-tooltip.exclusion-unknown,
.exclusions-cell span.exclusion-tooltip.exclusion-invited {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 1.6em;
    height: 1.6em;
    border-radius: 50%;
    color: #fff;
    font-size: 0.85em;
}

.exclusions-cell span.exclusion-tooltip.exclusion-unknown {
    background-color: #DC2626;
}

.exclusions-cell span.exclusion-tooltip.exclusion-invited {
    background-color: #E07856;
}

.modern-table tbody td span {
    white-space: nowrap;
    overflow: hidden;
    display: block;
    cursor: default;
}

.modern-table tbody td span[title] {
    cursor: help;
}

.modern-table tbody tr.totals-row {
    background-color: var(--bg-secondary);
    border-top: 2px solid var(--secondary);
    border-bottom: 2px solid var(--secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.modern-table code {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--secondary);
}

.modern-table .badge {
    padding: 0.5rem 1rem;
    font-size: 14px !important;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .modern-table-container {
        overflow-x: auto;
    }
    
    .modern-table {
        font-size: 12px;
    }
    
    .modern-table thead th,
    .modern-table tbody td {
        padding: 0.5rem 0.75rem;
    }
    
    .participant-card {
        padding: 1rem !important;
    }
    
    .participant-card-2col-grid {
        grid-template-columns: 1fr !important;
    }
    
    .participant-card-3col-grid {
        grid-template-columns: 1fr !important;
    }
}

/* No wrap for table cells */
.nowrap {
    white-space: nowrap !important;
}

/* Tabel layout */
/* Outer frame owns the border/rounding/background and clips (overflow: hidden) so the
   sticky thead/first-column inside the scrollable container can't bleed past the rounded
   corners - a scrollable element with border-radius + sticky children renders a doubled
   edge in some browsers if the border lives on the scrolling element itself. */
.modern-table-frame {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    border: 1px solid var(--secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: #f4fafd;
}

.modern-table-container {
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Participants card styling */
/* Icon buttons - show only on hover */
.icon-btn-primary,
.icon-btn-danger,
.icon-btn-success,
.icon-btn-secondary {
    background: none;
    border: 1px solid transparent;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.icon-btn-primary:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
    border-radius: 0.375rem;
}

.icon-btn-primary i {
    font-size: 1rem;
}

.icon-btn-danger:hover {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
    border-radius: 0.375rem;
}

.icon-btn-danger i {
    font-size: 1rem;
}

.icon-btn-success {
    color: #22c55e;
}

.icon-btn-success i {
    font-size: 1.5rem;
}

.icon-btn-success:hover {
    background-color: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #22c55e;
    border-radius: 0.375rem;
}

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

.icon-btn-secondary i {
    font-size: 1.5rem;
}

.icon-btn-secondary:hover {
    background-color: rgba(107, 114, 128, 0.1);
    border-color: #6b7280;
    color: #6b7280;
    border-radius: 0.375rem;
}

.icon-btn-copy {
    background: none;
    border: 1px solid transparent;
    padding: 0.25rem;
    cursor: pointer;
    color: #3b82f6;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    width: 28px;
    height: 28px;
}

.icon-btn-copy i {
    font-size: 1rem;
}

.icon-btn-copy:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    border-radius: 0.375rem;
}

#participants .card {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 100px);
}

#participants .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 1rem;
}

/* ==================== INVITATION SLIDER STYLES ====================*/

/* Right-side slider panel */
.invitation-slider {
    position: fixed;
    right: -450px;
    top: 56px;
    width: 450px;
    height: calc(100vh - 56px);
    background: white;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 1040;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e5e7eb;
}

.invitation-slider.open {
    right: 0;
}

/* Invite, task, access code, template and participant edit panels share the wider 900px width */
#invitationSlider,
#taskSlider,
#accessSlider,
#templateSlider,
#participantEditSlider {
    right: -900px;
    width: 900px;
    max-width: 90vw;
}

#invitationSlider.open,
#taskSlider.open,
#accessSlider.open,
#templateSlider.open,
#participantEditSlider.open {
    right: 0;
}

@media (max-width: 768px) {
    #invitationSlider,
    #taskSlider,
    #accessSlider,
    #templateSlider,
    #participantEditSlider {
        width: 100%;
        right: -100%;
    }
    
    #invitationSlider.open,
    #taskSlider.open,
    #accessSlider.open,
    #templateSlider.open {
        right: 0;
    }
}

.slider-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
}

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

.slider-header .btn-close {
    margin: 0;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.slider-header .btn-close:hover {
    opacity: 1;
}

.slider-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.slider-body::-webkit-scrollbar {
    width: 6px;
}

.slider-body::-webkit-scrollbar-track {
    background: transparent;
}

.slider-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.slider-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.slider-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    background-color: #f8fafc;
}

.slider-footer .btn {
    font-size: 14px;
    font-weight: 500;
}

/* Overlay for slider */
.slider-overlay {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100% - 56px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 1039;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Template preview section */
.template-preview {
    padding: 1rem;
    background-color: #f1f5f9;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    margin-top: 1rem;
    animation: slideDown 0.2s ease;
}

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

.preview-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.preview-subject {
    font-size: 13px;
}

.preview-subject small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 0.5rem;
}

#previewSubject {
    background-color: white !important;
    border: 1px solid #cbd5e1;
    font-size: 13px !important;
    line-height: 1.5;
    color: var(--primary);
    max-height: 50px;
    overflow: hidden;
}

.preview-body {
    font-size: 13px;
}

.preview-body small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 0.5rem;
}

#previewBody {
    background-color: white !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 12px !important;
    line-height: 1.6;
    color: var(--text-primary, #1e293b);
}

/* Responsive slider */
@media (max-width: 768px) {
    .invitation-slider {
        width: 100%;
        right: -100%;
    }
}

/* ==================== PLANNER COURSE COLORS ====================*/

.course-voorgerecht {
    background-color: #7C3AED !important;  /* Purple */
    color: white !important;
}

.course-hoofdgerecht {
    background-color: #06B6D4 !important;  /* Cyan */
    color: white !important;
}

.course-nagerecht {
    background-color: #EC4899 !important;  /* Pink */
    color: white !important;
}

/* Course header styling */
.course-header {
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

/* Map container styling */
#mapContainer {
    width: 100%;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#map {
    width: 100%;
    height: 450px;
    background-color: #e8eaed;
    border-radius: 8px;
}

/* Leaflet map fixes - cosmetic only, do not touch panes/tiles positioning */
.leaflet-container {
    font-family: 'DM Sans', sans-serif;
    border-radius: 8px;
}

.leaflet-popup-content-wrapper {
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.leaflet-tooltip {
    background-color: rgba(15, 23, 42, 0.95);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
}

.custom-numbered-marker {
    /* Custom marker styling handled by divIcon */
}

/* Journey Steps - Compact vertical layout for mobile */
.journey-steps-container {
    margin: 8px 0;
    padding: 0 6px;
}

.journey-steps-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.journey-step-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    background: #00A8E8;
    color: white;
    transition: all 0.3s ease;
    min-height: auto;
}

.journey-step-row.active {
    background: #0066a1;
    box-shadow: 0 2px 6px rgba(0, 102, 161, 0.3);
    padding: 14px 12px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.journey-step-row.past {
    background: #22C55E;
    color: white;
    opacity: 1;
    cursor: pointer;
}

.journey-step-row.past-selected {
    background: #22C55E;
    color: white;
    opacity: 1;
    cursor: pointer;
    padding: 10px 10px;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.journey-step-row.future {
    background: #00A8E8;
}

.journey-step-col-1 {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    width: auto;
}

.journey-step-row.active .journey-step-col-1 {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 0;
}

.journey-step-event {
    display: flex;
    gap: 3px;
    align-items: center;
}

.step-time {
    font-weight: 700;
    font-size: 14px;
    color: white;
    line-height: 1.1;
}

.step-name {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.1;
}

.journey-step-address {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
    flex: 1;
}

.journey-step-col-2 {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.journey-step-checkmark {
    font-size: 14px;
    color: white;
    font-weight: bold;
    line-height: 1;
}

.journey-step-countdown {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
}

.journey-step-navigate {
    padding: 4px 4px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journey-step-navigate:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: white;
}

.journey-step-row.past .journey-step-navigate {
    background: #4CAF50;
    cursor: default;
}

.journey-step.past .journey-step-navigate:hover {
    background: #4CAF50;
}

.journey-step-checkmark {
    font-size: 14px;
    color: white;
    margin-left: 16px;
}


