/* ======================================================================
   GLOBAL THEME VARIABLES (Scoped to avoid global conflicts)
   ====================================================================== */

:root {
    /* --- Brand & Action (Interaktive Elemente) --- */
    --primary: #0077b6; /* Ozean-Blau bleibt als starker Kontrast für Buttons */
    --primary-hover: #005a8c;

    /* --- Backgrounds (Hierarchische Ebenen) --- */
    --bg-primary: #edf5f0; /* Sanftes Zuckerrohr-Grün (Globaler Hintergrund) */
    --bg-secondary: #d9e8df; /* Sanftes Bambusgrün (Für Cards, Tabellen etc.) */
    --bg-surface: #d9e8df; /* Am besten gleichziehen mit bg-secondary */
    --bg-user-bubble: #c5dacd; /* Noch einen Tick dunkler für Bubbles */

    /* --- Typography (Kontraststufen) --- */
    --text-primary: #1b3a2b; /* Tiefes Dschungelgrün (wirkt wie ein warmes, weiches Schwarz) */
    --text-secondary: #4b735f; /* Gedecktes Farn-Grün statt klassischem Grau */
    --text-on-primary: #ffffff;

    /* --- Borders & Shadows (Strukturierung) --- */
    --border-color: #cde0d5; /* Sanftes Grün-Grau für dezente Linien */
    --shadow-color: rgba(27, 58, 43, 0.08); /* Schatten passend zum dunklen Grün eingefärbt */

    /* --- Buttons --- */
    --btn-primary-bg: var(--primary);
    --btn-secondary-bg: var(--bg-secondary);
    --btn-primary-hover: var(--primary-hover);
    --btn-primary-text: var(--text-on-primary);
    --btn-secondary-text: var(--text-primary);

    /* --- Status Colors --- */
    --color-success: #2a9d8f; /* Tropen-Grün */
    --color-warning: #f4a261; /* Vulkan-Orange */
    --color-error: #e76f51; /* Rote Lava */

    /* --- App Specific & Glass --- */
    --bg-navbar: rgba(253, 251, 247, 0.85); /* Sand-Weiß transparent für Glass-Effekt */
    --glass-blur: blur(12px);
    --bg-dropdown: #ffffff;
    --shadow-md: 0 4px 12px rgba(43, 45, 66, 0.08);
}

/* ======================================================================
   BASE STYLING & TRANSITIONS
   ====================================================================== */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ======================================================================
   INTERACTIVE ELEMENTS (BUTTONS & HOVERS)
   ====================================================================== */
.btn-primary-custom {
    background-color: var(--btn-primary-bg) !important;
    color: var(--btn-primary-text) !important;
    border: 1px solid var(--btn-primary-bg) !important;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.btn-primary-custom:hover {
    background-color: var(--btn-primary-hover) !important;
    border-color: var(--btn-primary-hover) !important;
    transform: translateY(-1px);
}

.btn-primary-custom.btn-sm,
.btn-group-sm > .btn-primary-custom {
    min-height: auto;
}

.btn-outline-custom {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.btn-outline-custom:hover,
.btn-outline-custom.active {
    background-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    transform: translateY(-1px);
}

.btn-check:checked + .btn-outline-custom {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--text-on-primary) !important;
}

.btn-check:checked + .btn-outline-custom:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: var(--text-on-primary) !important;
}


/* ======================================================================
   NAVBAR & TOPBAR & FOOTER
   ====================================================================== */
.navbar-custom {
    position: relative;
    z-index: 1000;
    background-color: var(--bg-navbar) !important;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar-custom .navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.navbar-custom .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary) !important;
}

.navbar .navbar-toggler,
.navbar-custom .navbar-toggler,
.navbar-app .navbar-toggler {
    border-color: var(--border-color) !important;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1;
}

.navbar .navbar-toggler:focus,
.navbar-custom .navbar-toggler:focus,
.navbar-app .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.navbar .navbar-toggler-icon,
.navbar-custom .navbar-toggler-icon,
.navbar-app .navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2830, 41, 59, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.footer-custom {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ======================================================================
   MARKETING PAGES & HERO SECTIONS
   ====================================================================== */
.bg-section-primary {
    background-color: var(--bg-primary);
}

.bg-section-secondary {
    background-color: var(--bg-secondary);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.hero-slide.previous {
    opacity: 1;
    z-index: 2;
    transition: none;
}

.hero-slide.active {
    opacity: 1;
    z-index: 3;
    transition: opacity 1.5s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide.active {
        transition-duration: 0.01ms !important;
    }
}

.glass-panel {
    /* Leicht durchscheinendes Weiß statt einer festen Farbe */
    background: rgba(255, 255, 255, 0.4);

    /* Der eigentliche Milchglas-Effekt (verschwommener Hintergrund) */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255, 255, 255, 0.6); /* Heller Rand als Highlight */
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.5); /* Wird beim Hover etwas heller */
    box-shadow: 0 8px 30px var(--shadow-color);
    transform: translateY(-2px);
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--text-on-primary);
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Form Controls */
.form-control-custom {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease;
}

.form-control-custom:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15) !important;
}

/* ======================================================================
   SIDEBAR & APP VIEW
   ====================================================================== */
.no-caret::after {
    display: none !important;
}

/* ======================================================================
   SIGNIN, SIGNUP & AUTHENTICATION STYLES
   ====================================================================== */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 180px);
    padding: 2.5rem 1rem;
    background-color: var(--bg-primary);
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.animated-fade {
    animation: authFadeIn 0.5s ease-out;
}

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

/* ======================================================================
   PRICING CARD STYLES
   ====================================================================== */
.pricing-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.pricing-card-current {
    opacity: 0.55;
    filter: grayscale(80%);
    pointer-events: none;
}

.pricing-card-current button:disabled,
.pricing-card-current .btn:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 1.5rem 0;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ======================================================================
   BILLING & TABLES CUSTOM STYLES
   ====================================================================== */
.badge-custom-primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.table-custom {
    color: var(--text-primary);
    border-color: var(--border-color);
}

.table-custom th {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.table-custom td {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.table-custom tr:last-child td {
    border-bottom: none;
}

/* ======================================================================
   STAR RATING COMPONENT
   ====================================================================== */
.p-1\.5,
.p-1-5 {
    padding: 0.375rem !important;
}

.star-btn {
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: transform 0.15s ease, color 0.15s ease;
    touch-action: manipulation;
}

.star-btn:hover {
    transform: scale(1.15);
}

.star-btn .star-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: color 0.15s ease;
}

.star-btn.is-active,
.star-btn.is-hovered {
    color: #ffc107 !important;
}

/* ======================================================================
   OAUTH BUTTON STYLES
   ====================================================================== */
.google-btn {
    background-color: #ffffff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    padding: 0.5rem 1.25rem !important;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.google-btn:hover {
    background-color: #f9fafb !important;
    border-color: #cbd5e1 !important;
    color: #111827 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px);
}

/* ======================================================================
   GLOBAL CONFIRM MODAL
   ====================================================================== */
#globalConfirmModal .modal-content {
    background: var(--bg-dropdown, #ffffff);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 10px 25px var(--shadow-color);
    overflow: hidden;
}

#globalConfirmModal .modal-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    padding: 1rem 1.25rem;
}

#globalConfirmModal .modal-body {
    padding: 1.5rem 1.25rem;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
}

#globalConfirmModal .modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    background-color: var(--bg-secondary);
}

.modal-backdrop.show {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0.35;
}

/* ======================================================================
   RESPONSIVE TIMELINE SLOTS (Mobile & Tablets < 1000px)
   ====================================================================== */
@media (max-width: 999.98px) {
    .trip-timeline .slot-type-col {
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 0.5rem !important;
    }
    .trip-timeline .slot-type-col .badge {
        width: 100% !important;
        text-align: left !important;
    }
    .trip-timeline .slot-card-col {
        width: 100% !important;
    }
}

@media (min-width: 992px) {
    .w-lg-auto {
        width: auto !important;
    }
}



