/*
 * Travel Portal - Main Stylesheet
 * Author: Trea
 */

/* ----------------------------------------------------------------
   [ 01. Google Fonts ]
-----------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ----------------------------------------------------------------
   [ 02. Basic Styles ]
-----------------------------------------------------------------*/
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #0ea5e9;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    --body-bg: #ffffff;
    --text-color: #334155;
    --heading-color: #0f172a;
    --link-color: #2563eb;
    --link-hover-color: #1d4ed8;
    --border-color: #e2e8f0;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 600;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ----------------------------------------------------------------
   [ 03. Header & Navigation ]
   -----------------------------------------------------------------*/
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
    background: transparent !important;
    box-shadow: none;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color) !important;
    letter-spacing: -0.5px;
}

.navbar-brand > span:not(.brand-text), 
.navbar-brand .brand-text span {
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

/* ----------------------------------------------------------------
   [ 04. Buttons ]
-----------------------------------------------------------------*/
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* ----------------------------------------------------------------
   [ 05. Forms ]
-----------------------------------------------------------------*/
.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group {
    margin-bottom: 1.5rem;
}

/* ----------------------------------------------------------------
   [ 06. Cards ]
-----------------------------------------------------------------*/
.card {
    background-color: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.25rem 1.5rem;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

/* ----------------------------------------------------------------
   [ 08. Hero Section ]
   -----------------------------------------------------------------*/
.hero-section {
    position: relative;
    padding: 8rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.svg');
    opacity: 0.1;
    pointer-events: none;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -0.025em;
}

.hero-section p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* ----------------------------------------------------------------
   [ 09. Service Cards ]
   -----------------------------------------------------------------*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-card .card-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card .card-body {
    padding: 2rem;
}

.service-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ----------------------------------------------------------------
   [ 07. Footer ]
   -----------------------------------------------------------------*/
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 6rem 0 2rem;
    margin-top: 5rem;
}

.footer-logo {
    color: #fff !important;
    font-weight: 800;
    font-size: 1.75rem;
    text-decoration: none;
}

.footer-section-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-right: 0.5rem;
    color: #fff !important;
    transition: var(--transition);
    text-decoration: none;
}

.socials a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 10px 0 0 10px;
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    border-color: var(--primary-color);
}

.newsletter-form .btn {
    border-radius: 0 10px 10px 0;
}

.footer-bottom {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    background-color: #128c7e;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.footer-links li a {
    position: relative;
    padding-left: 0;
}

.footer-links li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: var(--transition);
}

.footer-links li a:hover {
    padding-left: 20px;
}

.footer-links li a:hover::before {
    left: 0;
    opacity: 1;
}

/* ----------------------------------------------------------------
   [ 10. Authentication ]
-----------------------------------------------------------------*/
.auth-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.auth-card {
    background: #ffffff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.auth-card.register-card {
    max-width: 800px;
}

.auth-card h2 {
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.auth-card .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.5rem;
}

.auth-card .form-control,
.auth-card .form-select {
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1.5px solid #e2e8f0;
    background-color: #f8fafc;
    transition: var(--transition);
}

.auth-card .form-control:focus {
    border-color: var(--primary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-card .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.75rem;
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.auth-links a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    position: relative;
    background: #ffffff;
    padding: 0 1rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.auth-page, .auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    background-color: #f8fafc;
    padding: 2rem 1rem;
}

.auth-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-card h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--dark-color);
    text-align: center;
}

.auth-card p {
    margin-bottom: 2rem;
    color: var(--text-color);
    text-align: center;
}

.auth-card .form-group {
    margin-bottom: 1.5rem;
}

.auth-card .form-control {
    border-radius: 5px;
}

.auth-card .btn {
    width: 100%;
    margin-top: 1rem;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links p {
    margin-top: 1rem;
    color: var(--text-color);
}

/* ----------------------------------------------------------------
   [ 12. Booking Form Styles ]
-----------------------------------------------------------------*/
.booking-card { 
    border-radius: 1rem; 
    border: none; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}
.line-item { 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    border-radius: 0.75rem; 
    padding: 1.5rem; 
    margin-bottom: 1rem; 
    transition: all 0.2s; 
    position: relative; 
}
.line-item:hover { 
    border-color: var(--primary-color); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
}
.remove-item-btn { 
    position: absolute; 
    top: -10px; 
    right: -10px; 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    background: #ef4444; 
    color: white; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 2px solid white; 
    cursor: pointer; 
    z-index: 10; 
    transition: transform 0.2s; 
}
.remove-item-btn:hover { 
    transform: scale(1.1); 
    background: #dc2626; 
}
.total-summary-card { 
    background: #f8fafc; 
    border-radius: 0.75rem; 
    border: 1px solid #e2e8f0; 
    padding: 1.5rem; 
}
.summary-row { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 0.75rem; 
    font-size: 0.95rem; 
}
.summary-row.total { 
    border-top: 1px solid #e2e8f0; 
    padding-top: 1rem; 
    margin-top: 1rem; 
    font-weight: 800; 
    font-size: 1.25rem; 
    color: var(--primary-color); 
}
.passenger-row { 
    background: #f8fafc; 
    border-radius: 0.5rem; 
    padding: 1rem; 
    margin-bottom: 0.75rem; 
    border-left: 4px solid var(--primary-color); 
}
/* ----------------------------------------------------------------
   [ 11. Dashboard Layout ]
-----------------------------------------------------------------*/
/* Dashboard Layout & Sidebar Modern Styling */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f8fafc;
    width: 100%;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1040; /* Lowered to be below Bootstrap modals (1050) but above content (1) */
    transition: all 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
}

/* Sidebar Base Styles */
.dashboard-sidebar {
    width: 260px;
    min-width: 260px;
    background: #0f172a !important;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    z-index: 1060;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    overflow: visible; /* Changed from hidden to allow child scrolling better */
}

.sidebar-nav-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0;
    height: calc(100vh - 70px); /* Subtract brand height */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0 0.75rem;
    min-height: min-content; /* Ensure it takes space */
}

.sidebar-brand {
    display: flex;
    align-items: center;
    padding: 1.5rem 1.5rem;
    gap: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    min-height: 70px;
}

.sidebar-brand img {
    max-height: 35px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.sidebar-brand i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.sidebar-brand span {
    font-weight: 700;
    font-size: 1.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-group-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: #64748b;
    margin: 1.25rem 0 0.5rem 0.75rem;
    opacity: 0.8;
}

/* Slim Sidebar Mode (Desktop) */
.dashboard-layout.slim-sidebar .dashboard-sidebar {
    width: 80px;
    min-width: 80px;
}

.dashboard-layout.slim-sidebar .dashboard-main {
    margin-left: 80px;
    width: calc(100% - 80px);
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 0.15rem 0;
    position: relative;
    cursor: pointer !important;
    z-index: 5;
}

.sidebar-nav-container::-webkit-scrollbar {
    width: 6px;
}
.sidebar-nav-container::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-nav-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}
.sidebar-nav-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Global Custom Scrollbar for Dashboard */
.table-responsive::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Modal and Body Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dashboard-layout.slim-sidebar .dashboard-sidebar .sidebar-brand {
    justify-content: center;
    padding: 1.5rem 0;
}

.dashboard-layout.slim-sidebar .dashboard-sidebar .sidebar-brand span,
.dashboard-layout.slim-sidebar .dashboard-sidebar .nav-group-label,
.dashboard-layout.slim-sidebar .dashboard-sidebar .nav-link span {
    display: none !important;
}

.dashboard-layout.slim-sidebar .dashboard-sidebar .sidebar-brand img {
    margin: 0 !important;
    max-width: 40px;
}

.dashboard-layout.slim-sidebar .dashboard-sidebar .sidebar-brand i {
    margin: 0 !important;
}

.dashboard-layout.slim-sidebar .dashboard-sidebar .sidebar-nav {
    padding: 0 0.4rem;
}

.dashboard-layout.slim-sidebar .dashboard-sidebar .nav-link {
    justify-content: center;
    padding: 0.9rem 0;
    margin: 0.25rem 0;
}

.dashboard-layout.slim-sidebar .dashboard-sidebar .nav-link i {
    margin: 0;
    font-size: 1.25rem;
}

/* Main Content Area */
.dashboard-main {
    flex: 1;
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    .dashboard-layout {
        display: block;
        position: relative;
    }
    
    .dashboard-sidebar {
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: 0 !important;
        width: 280px !important;
        min-width: 280px !important;
        transform: translateX(-100%) !important;
        visibility: hidden;
        opacity: 0;
        z-index: 2000;
        background: #0f172a !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s, opacity 0.3s !important;
    }
    
    .dashboard-sidebar.show {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.3);
    }

    /* Force visibility of elements in mobile drawer */
    .dashboard-sidebar.show .sidebar-brand span,
    .dashboard-sidebar.show .nav-group-label,
    .dashboard-sidebar.show .nav-link span {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .dashboard-main {
        margin-left: 0 !important;
        padding-left: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
    }
}

/* Custom Searchable Dropdown */
.custom-dropdown-container {
    position: relative;
    width: 100%;
}

.custom-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    max-height: 350px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
    margin-top: 8px;
    padding: 0.5rem 0;
}

.custom-dropdown-list.show {
    display: block;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-dropdown-item {
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.9rem;
}

.custom-dropdown-item:last-child {
    border-bottom: none;
}

.custom-dropdown-item:hover {
    background: #f1f5f9;
}

.custom-dropdown-item:hover .fw-bold {
    color: var(--primary-color) !important;
}

.bg-primary-soft { background-color: rgba(13, 110, 253, 0.1) !important; }
.bg-success-soft { background-color: rgba(25, 135, 84, 0.1) !important; }
.bg-info-soft { background-color: rgba(13, 202, 240, 0.1) !important; }
.bg-warning-soft { background-color: rgba(255, 193, 7, 0.1) !important; }
.bg-danger-soft { background-color: rgba(220, 53, 69, 0.1) !important; }

.custom-dropdown-item.no-results {
    color: #94a3b8;
    cursor: default;
    text-align: center;
    padding: 1.5rem;
}

/* Custom Scrollbar for Dropdown - Enhanced Visibility */
.custom-dropdown-list::-webkit-scrollbar {
    width: 8px;
    display: block !important;
}

.custom-dropdown-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.custom-dropdown-list::-webkit-scrollbar-thumb {
    background: #64748b; /* Darker for better contrast */
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

.custom-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Ensure global scrollbars are visible and styled */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8; /* Improved visibility */
    border-radius: 10px;
    border: 2px solid #f8fafc;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Sidebar Scrollbar Styling - Improved Visibility */
.sidebar-nav-container::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav-container::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3); /* Increased opacity */
    border-radius: 10px;
}

.sidebar-nav-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
}

/* Dashboard Layout Scrollbar Fix */
.dashboard-main {
    overflow-y: auto;
    max-height: 100vh;
}


.sidebar-nav .nav-link i {
    width: 24px;
    text-align: center;
    font-size: 1.15rem;
    color: inherit;
    opacity: 0.85;
}

.sidebar-nav .nav-link span {
    color: inherit !important;
    display: inline-block;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

.sidebar-nav .nav-link.active {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    font-weight: 600;
}

.sidebar-nav .nav-link.active i {
    opacity: 1;
}

/* Dashboard Stat Icons */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
    color: var(--dark-color);
}

.dashboard-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

/* New Modern Stat Icons */
.stat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Badge Styles Modernized with High Contrast for Maximum Readability */
.badge-soft-success { background-color: #dcfce7 !important; color: #14532d !important; border: 1px solid #bbf7d0 !important; }
.badge-soft-warning { background-color: #fef3c7 !important; color: #78350f !important; border: 1px solid #fde68a !important; }
.badge-soft-danger { background-color: #fee2e2 !important; color: #7f1d1d !important; border: 1px solid #fecaca !important; }
.badge-soft-primary { background-color: #dbeafe !important; color: #1e3a8a !important; border: 1px solid #bfdbfe !important; }
.badge-soft-info { background-color: #cffafe !important; color: #083344 !important; border: 1px solid #a5f3fc !important; }
.badge-soft-light { background-color: #f1f5f9 !important; color: #0f172a !important; border: 1px solid #e2e8f0 !important; }
.badge-soft-dark { background-color: #1e293b !important; color: #f8fafc !important; }

/* Global Override for Bootstrap Utility Badges to ensure high contrast */
.badge.rounded-pill {
    padding: 0.5rem 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em !important;
}

/* Force high contrast text colors on light backgrounds */
.text-success, .badge.text-success { color: #14532d !important; }
.text-warning, .badge.text-warning { color: #78350f !important; }
.text-danger, .badge.text-danger { color: #7f1d1d !important; }
.text-primary, .badge.text-primary { color: #1e3a8a !important; }
.text-info, .badge.text-info { color: #083344 !important; }
.text-secondary, .badge.text-secondary { color: #1e293b !important; }

/* Background opacity overrides for better visibility */
.bg-opacity-10, .bg-success.bg-opacity-10, .bg-warning.bg-opacity-10, 
.bg-danger.bg-opacity-10, .bg-primary.bg-opacity-10, .bg-info.bg-opacity-10 {
    --bs-bg-opacity: 0.2 !important;
}

/* Specific overrides for common badge combinations in the project */
.badge.bg-white.text-muted, .badge.bg-light.text-muted, .text-muted.badge {
    color: #334155 !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

.badge.bg-white { background-color: #ffffff !important; color: #1e293b !important; border: 1px solid #e2e8f0 !important; }

/* Background Soft Colors Improved Contrast */
.bg-primary-soft { background-color: #dbeafe !important; }
.bg-success-soft { background-color: #dcfce7 !important; }
.bg-warning-soft { background-color: #fef3c7 !important; }
.bg-danger-soft { background-color: #fee2e2 !important; }
.bg-info-soft { background-color: #cffafe !important; }


/* Testimonials */
.testimonial-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    color: #4b5563;
}

.letter-spacing-1 {
    letter-spacing: 0.1em;
}

/* Media Queries handled above */

/* ----------------------------------------------------------------
   [ 13. Services Page & Lists ]
-----------------------------------------------------------------*/
.filters {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.filters h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.filters .form-group {
    margin-bottom: 1rem;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Data Tables & Lists */
.table-responsive {
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    background: #fff;
    margin-bottom: 1.5rem;
}

.table {
    margin-bottom: 0;
    width: 100%;
    white-space: nowrap; /* Prevents text wrapping in tables unless specified */
}

/* Allow wrapping in specific columns if needed */
.table .text-wrap {
    white-space: normal !important;
}

.table thead th {
    background-color: #f8fafc;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    color: #64748b;
}

.table tbody td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

/* Responsive Table Adjustments */
@media (max-width: 767.98px) {
    .table thead th, 
    .table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* ----------------------------------------------------------------
   [ 14. Buttons - Enhanced Consistency ]
-----------------------------------------------------------------*/
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #545b62);
    color: #fff;
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #545b62, #3d4248);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #1e7e34);
    color: #fff;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34, #145a25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #bd2130);
    color: #fff;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #bd2130, #8b1a29);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
}

/* ----------------------------------------------------------------
   [ 15. Responsive Design Improvements ]
-----------------------------------------------------------------*/
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
/* Dashboard layout handled above */
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-actions {
        margin-top: 1rem;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ----------------------------------------------------------------
   [ 16. Utility Classes ]
-----------------------------------------------------------------*/
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-info { background-color: var(--info-color) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }

.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }

/* ----------------------------------------------------------------
   [ 17. Loading States ]
-----------------------------------------------------------------*/
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn .loading {
    margin-right: 0.5rem;
}

/* ----------------------------------------------------------------
   [ 18. Form Enhancements ]
-----------------------------------------------------------------*/
.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.is-invalid {
    border-color: var(--danger-color) !important;
}

.is-valid {
    border-color: var(--success-color) !important;
}

.card-text {
    color: var(--text-color);
}

/* ----------------------------------------------------------------
   [ 13. Service Details Page ]
-----------------------------------------------------------------*/
.service-image {
    max-height: 400px;
    object-fit: cover;
}

.badge-info {
    background-color: #17a2b8;
}

.price-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
}

.form-section {
    margin-bottom: 2rem;
}

.customer-select-box {
    display: none;
}

.pilgrim-details-table th,
.pilgrim-details-table td {
    padding: 0.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-header h5, .card-header h6 {
        margin-bottom: 0;
        font-weight: 700 !important;
    }

    /* Improved Readability for Forms */
    .form-label.small {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        color: #495057 !important; /* Darker than standard muted for better readability */
    }
    
    .text-muted.small {
        color: #6c757d !important;
    }

    .card-title {
        color: #212529;
    }

    .input-group-text {
        color: #495057;
    }

    /* Enhanced Responsive Fixes for Booking Forms */
    @media (max-width: 991.98px) {
        .sticky-top {
            position: relative !important;
            top: 0 !important;
            margin-top: 2rem;
        }
        
        .dashboard-main {
            padding: 0;
        }
        
        .border-end {
            border-right: none !important;
            border-bottom: 1px solid #dee2e6 !important;
            padding-bottom: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .border-end:last-child {
            border-bottom: none !important;
            padding-bottom: 0;
            margin-bottom: 0;
        }

        /* Ensure form labels and inputs stack nicely */
        .row.g-3 > [class^="col-"], .row.g-4 > [class^="col-"] {
            margin-bottom: 0.5rem;
        }
    }

    @media (max-width: 768px) {
        .nav-pills:not(.flex-column) {
            flex-direction: column;
            border-radius: 1rem !important;
        }
        
        .nav-pills .nav-item {
            width: 100%;
        }
        
        .nav-pills .nav-link {
            text-align: center;
            margin: 2px 0;
        }

        .card-body {
            padding: 1.25rem !important;
        }

        .h2, h2 { font-size: 1.5rem; }
        .h3, h3 { font-size: 1.35rem; }
        .h4, h4 { font-size: 1.2rem; }

        /* Table responsiveness */
        .table-responsive {
            border: 0 !important;
        }
        
        .table-responsive table {
            min-width: 600px;
        }

        /* Input groups on mobile */
        .input-group {
            flex-wrap: nowrap;
        }
        
        .input-group > .form-control, 
        .input-group > .form-select {
            min-width: 0;
        }

        .form-select {
            text-overflow: ellipsis;
        }

        /* Buttons on mobile */
        .btn-lg {
            width: 100%;
            margin-bottom: 1rem;
        }

        /* Line item adjustments */
        .line-item .card-body {
            padding: 1rem !important;
        }

        .passenger-row .card-body {
            padding: 1rem !important;
        }
    }

    @media (max-width: 576px) {
        .dashboard-main {
            padding: 0;
        }

        .card-body {
            padding: 1rem !important;
        }

        .h2, h2 { font-size: 1.25rem; }
        .h3, h3 { font-size: 1.15rem; }
        
        /* Form adjustments for small screens */
        .form-label {
            font-size: 0.85rem;
            margin-bottom: 0.25rem;
        }

        .input-group-text {
            font-size: 0.85rem;
            padding: 0.25rem 0.5rem;
        }

        .form-control, .form-select {
            font-size: 0.9rem;
            padding: 0.4rem 0.75rem;
        }

        /* Action buttons */
        #addServiceItem, #addPassengerItem {
            width: 100%;
            margin-top: 0.5rem;
        }

        .d-flex.justify-content-between.align-items-center.mb-3 {
            flex-direction: column;
            align-items: flex-start !important;
        }

        .d-flex.justify-content-between.align-items-center.mb-3 h5 {
            margin-bottom: 0.5rem;
        }

        /* Summary sections */
        .bg-light.p-4.rounded-4 {
            padding: 1.25rem !important;
        }

        .h4.mb-0.fw-bold.text-primary {
            font-size: 1.5rem;
        }

        /* PPH Badge */
        .passenger-price-badge {
            margin-right: 0 !important;
            margin-bottom: 0.5rem;
            width: 100%;
        }

        .passenger-price-badge .badge {
            width: 100%;
            display: block;
            text-align: center;
        }

        .btn {
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
        }

        /* Select elements text truncation */
        .form-select {
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
        }
    }

@media (max-width: 576px) {
    .dashboard-main {
        padding: 1rem !important;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .input-group-text {
        padding: 0.375rem 0.5rem;
    }
}

.table-responsive {
    border-radius: 0.75rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #94a3b8; /* Improved visibility */
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.modal-body {
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #94a3b8; /* Improved visibility */
    border-radius: 10px;
}

select.form-select {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* ----------------------------------------------------------------
   [ 19. Logo & Branding Styles ]
-----------------------------------------------------------------*/
.brand-logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.sidebar-logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.brand-text {
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
    flex-grow: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Profile Avatar Styles */
.profile-avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
}

/* Ensure no overlap or spacing issues in flex containers */
.navbar-brand, .footer-logo, .sidebar-brand {
    gap: 12px;
}

/* Mobile adjustments for logos */
@media (max-width: 768px) {
    .brand-logo-img {
        height: 40px;
    }
    .footer-logo-img {
        height: 35px;
    }
    .sidebar-logo-img {
        height: 35px;
    }
}

/* Fix for modal z-index issues */
.modal-backdrop {
    z-index: 1040 !important;
}
.modal {
    z-index: 1050 !important;
}

/* Ensure modal content is clickable */
.modal-dialog {
    z-index: 1060 !important;
}