/* Modern Premium Theme Stylesheet - Bus Booking System */
/* Colors: Blue (#0d6efd / #1a237e), White (#ffffff), Orange (#ff6d00 / #ff9100) */

:root {
    --primary-blue: #1e3c72;
    --secondary-blue: #2a5298;
    --accent-orange: #ff6d00;
    --hover-orange: #ff9100;
    --dark-sidebar: #111b27;
    --light-bg: #f4f7f9;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Outfit', 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Material Shadow Cards */
.material-card {
    background: var(--white);
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Premium Gradient Header/Hero */
.premium-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.premium-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: var(--light-bg);
    clip-path: ellipse(60% 40px at 50% 40px);
}

/* Custom Bus Search Bar - Glassmorphism */
.search-bar-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: -60px;
    z-index: 10;
    position: relative;
}

/* Buttons */
.btn-orange {
    background-color: var(--accent-orange);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    transition: all 0.3s ease;
}
.btn-orange:hover {
    background-color: var(--hover-orange);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 109, 0, 0.4);
}

.btn-blue {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    transition: all 0.3s ease;
}
.btn-blue:hover {
    background-color: var(--secondary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.4);
}

/* Sticky Header Custom styling */
.navbar-custom {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}
.navbar-custom .navbar-brand {
    font-weight: 800;
    color: var(--primary-blue);
}
.navbar-custom .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    margin: 0 8px;
}
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active {
    color: var(--accent-orange);
}

/* Dashboard Sidebars */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 260px;
    background-color: var(--dark-sidebar);
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
}
.sidebar .sidebar-brand {
    padding: 20px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
}
.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.05);
    border-left-color: var(--accent-orange);
}
.dashboard-content {
    flex: 1;
    padding: 30px;
    background: var(--light-bg);
}

/* Stat Cards */
.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stat-card .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.stat-card.blue .icon-box {
    background: rgba(30, 60, 114, 0.1);
    color: var(--primary-blue);
}
.stat-card.orange .icon-box {
    background: rgba(255, 109, 0, 0.1);
    color: var(--accent-orange);
}

/* Seat Booking Layout CSS */
.seat-map-container {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e1e8ed;
}
.seat-row {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    gap: 15px;
}
.seat {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}
.seat.sleeper-seat {
    width: 40px;
    height: 80px;
}
.seat.booked {
    background: #e11d48;
    color: white;
    border-color: #be123c;
    cursor: not-allowed;
}
.seat.selected {
    background: #10b981;
    color: white;
    border-color: #047857;
    transform: scale(1.1);
}
.seat.female-reserved {
    background: #ec4899;
    color: white;
    border-color: #db2777;
}
.seat.disabled-reserved {
    background: #8b5cf6;
    color: white;
    border-color: #7c3aed;
}
.seat.walkway {
    background: transparent !important;
    border: none !important;
    cursor: default !important;
    width: 30px;
}
.seat-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* Micro animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animated-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

.bg-orange {
    background-color: var(--accent-orange) !important;
    color: var(--white) !important;
}

/* Print Ticket Styling */
@media print {
    body {
        background: white;
        color: black;
    }
    .no-print, nav, footer, .btn {
        display: none !important;
    }
    .print-container {
        width: 100%;
        margin: 0;
        padding: 0;
        box-shadow: none !important;
        border: none !important;
    }
}
