/* 
   Rural Ride - Ultimate Premium Theme
*/

:root {
    --primary: #FFD700;
    --primary-dark: #FFC107;
    --secondary: #1a1a1a;
    --dark-accent: #2c2c2c;
    --text: #333;
    --light-bg: #fdfdfd;
    --white: #ffffff;
    --available: #2ecc71;
    --offline: #e74c3c;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-dark: rgba(0, 0, 0, 0.8);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary) 0%, #FFA000 100%);
    --hover-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--light-bg);
    color: var(--text);
    overflow-x: hidden;
}

tbody tr,
.glass-card {
    cursor: pointer;
}

tbody tr:hover {
    background: var(--hover-bg);
}

/* Navbar */
.menu-toggle {
    display: none;
    z-index: 1001;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover:not(.btn) {
    color: var(--primary-dark);
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.mobile-mock {
    max-width: 480px;
    margin: 0 auto;
}

/* Hero & Sections */
.hero-gradient {
    min-height: 50vh;
    /* Reduced from 60vh */
    display: flex;
    align-items: center;
    background: var(--gradient);
    overflow: hidden;
    border-radius: 0 0 50px 50px;
}

.hero-text {
    animation: fadeUp 1s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-illustration {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--secondary);
}

.stat-item i {
    color: var(--primary-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Rickshaw Animation */
.hero-rickshaw {
    width: 380px;
    height: auto;
    animation: rickshawVibrate 0.1s infinite alternate;
    transform: scaleX(-1);
    filter: drop-shadow(1px 1px 0px black) drop-shadow(-1px -1px 0px black) drop-shadow(1px -1px 0px black) drop-shadow(-1px 1px 0px black);
    z-index: 2;
    position: relative;
}

@keyframes rickshawVibrate {
    from {
        transform: scaleX(-1) translateY(0);
    }
    to {
        transform: scaleX(-1) translateY(-3px);
    }
}

/* Moving Road Animation under Rickshaw (Desktop only) */
.rickshaw-road-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 500px;
}

.moving-road {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotateX(60deg);
    width: 120%;
    height: 60px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 2px solid #555;
}

.moving-road::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 200%;
    height: 6px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 215, 0, 0.8),
        rgba(255, 215, 0, 0.8) 40px,
        transparent 40px,
        transparent 80px
    );
    animation: roadTravel 0.8s linear infinite;
}

@keyframes roadTravel {
    from { transform: translateY(-50%) translateX(0); }
    to { transform: translateY(-50%) translateX(-80px); }
}

/* Responsive Hiding (Hide road and rickshaw on mobile) */
@media (max-width: 991px) {
    .rickshaw-road-container {
        display: none !important;
    }
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.92);
    /* Consistently white glass card */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 24px;
    padding: 1.5rem;
    /* Reduced from 2rem */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .glass-card {
        padding: 1.2rem;
        /* Sophisticated high-density desktop look */
    }
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Buttons with Premium Effects */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: 0.5s;
    pointer-events: none;
}

.btn:hover::after {
    transform: scale(3);
}

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

/* User's "Book a Ride" button now black with white text */
.button {
    background: #000000 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.btn-accent {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.btn-accent:hover {
    background: #FFD700;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--secondary);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    transform: scale(1.02);
}

.nav-links .btn-primary {
    color: var(--primary);
}

.nav-links .btn-secondary {
    color: var(--secondary);
}

/* How it Works / Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* Admin Specific */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    background: var(--secondary);
    color: var(--white);
    padding: 2rem 1.5rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-nav-item {
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-nav-item.active,
.admin-nav-item:hover {
    background: var(--dark-accent);
    color: var(--primary);
}

.admin-content {
    padding: 2rem;
    background: #f4f6f8;
}

.data-table-container {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    overflow-x: auto;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 15px;
    background: #fafafa;
    border-bottom: 2px solid #eee;
    color: #666;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* Tooling */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 15px;
}

.search-filter {
    display: flex;
    gap: 10px;
}

select,
input[type="date"] {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
}

/* Navbar Mobile & Hamburger */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        cursor: pointer;
        color: var(--secondary);
        width: 45px;
        height: 45px;
        background: var(--white);
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 5%;
        right: 5%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-radius: 20px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        gap: 1.5rem;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .nav-links.mobile-active {
        display: flex !important;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        padding: 10px;
    }

    #auth-buttons-container {
        flex-direction: column;
        width: 100%;
    }

    #auth-buttons-container button {
        width: 100%;
    }

    /* Mobile Hero Shrink & Optimization */
    .hero-gradient .container {
        padding: 40px 5% !important;
        gap: 20px !important;
    }

    .hero-illustration {
        display: none !important;
    }

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

    .hero-text {
        font-size: 2.2rem !important;
    }

    .hero-text+p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    /* Buttons row on mobile */
    .hero-glass-card>div[style*="display: flex"] {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    .hero-glass-card .btn {
        padding: 12px 10px !important;
        font-size: 0.85rem !important;
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }

    .hero-rickshaw {
        width: 240px !important;
        /* Smaller rickshaw for mobile */
        transform: scaleX(1) !important;
        /* Facade forward again */
    }

    @keyframes rickshawVibrate {
        from {
            transform: scaleX(1) translateY(0);
        }

        to {
            transform: scaleX(1) translateY(-3px);
        }
    }
}

.nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out forwards;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: serif;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--secondary);
}

/* Unified Dashboard Elements */
.dashboard-header {
    background: var(--gradient);
    padding: 3rem 5%;
    border-radius: 0 0 30px 30px;
    color: var(--secondary);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
}

/* Autocomplete Dropdown */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    color: #333;
    transition: background 0.2s;
}

.autocomplete-item:hover {
    background: #f5f8fc;
}

.autocomplete-item:last-child {
    border-bottom: none;
}


.dashboard-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Generic Modal Overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Auth Modal Styles */
.auth-toggle {
    display: flex;
    background: #eee;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    padding: 5px;
}

.auth-toggle button {
    flex: 1;
    padding: 12px;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.auth-toggle button.active {
    background: var(--white);
    box-shadow: var(--shadow);
    color: var(--primary-dark);
}

.auth-error {
    display: none;
    color: var(--offline);
    background: #ffebee;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-align: center;
}

/* --- Rickshaw Loader Styles --- */
.rickshaw-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.rickshaw-wrapper {
    width: 180px;
    height: 100px;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.rickshaw-body {
    width: 110px;
    height: fit-content;
    margin-bottom: 8px;
    animation: rickshawMotion 0.8s ease-in-out infinite;
}

@keyframes rickshawMotion {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-2px) rotate(-1deg);
    }

    75% {
        transform: translateY(-1px) rotate(1deg);
    }
}

.rickshaw-wheels {
    width: 100px;
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 5px;
    padding: 0 10px;
}

.wheel-svg {
    width: 22px;
    height: 22px;
    animation: wheelRotate 0.6s linear infinite;
}

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

.rickshaw-road {
    width: 100%;
    height: 2px;
    background: #444;
    position: relative;
    bottom: 0;
    border-radius: 2px;
}

.road-stripe {
    position: absolute;
    height: 100%;
    width: 20px;
    background: #444;
    right: -20px;
    animation: roadMove 1.2s linear infinite;
    border-left: 8px solid white;
}

@keyframes roadMove {
    100% {
        transform: translateX(-240px);
    }
}

/* --- Heartbeat Preloader --- */
.cssload-main {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
}

.cssload-heart {
    animation: cssload-heart 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
    position: relative;
    width: 60px;
    height: 60px;
}

.cssload-heartL,
.cssload-heartR {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary);
    background-color: var(--primary);
    position: absolute;
    display: block;
    border-radius: 100%;
}

.cssload-heartL {
    animation: cssload-heartL 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
    transform: translate(-15px, -15px);
}

.cssload-heartR {
    transform: translate(15px, -15px);
    animation: cssload-heartR 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
}

.cssload-square {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary);
    background-color: var(--primary);
    position: relative;
    display: block;
    transform: scale(1) rotate(-45deg);
    animation: cssload-square 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
}

.cssload-shadow {
    top: 50px;
    left: 50%;
    position: relative;
    display: block;
    width: 30px;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: cssload-shadow 2.88s cubic-bezier(0.75, 0, 0.5, 1) infinite normal;
}

@keyframes cssload-square {
    50% {
        border-radius: 100%;
        transform: scale(0.5) rotate(-45deg);
    }

    100% {
        transform: scale(1) rotate(-45deg);
    }
}

@keyframes cssload-heart {
    50% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(720deg);
    }
}

@keyframes cssload-heartL {
    60% {
        transform: scale(0.4) translate(-15px, -15px);
    }
}

@keyframes cssload-heartR {
    40% {
        transform: scale(0.4) translate(15px, -15px);
    }
}

@keyframes cssload-shadow {
    50% {
        transform: scale(0.5) translateX(-100%);
        opacity: 0.5;
    }
}

/* Admin Layout & Navigation */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    width: 280px;
    background: var(--white);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 70px;
    bottom: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto;
}

.admin-nav {
    padding: 20px;
}

.admin-nav-item {
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #444;
    /* Fix: Visible color for inactive items */
    font-weight: 600;
}

.admin-nav-item:hover {
    background: #f8f9fa;
    color: var(--secondary);
}

.admin-nav-item.active {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    margin-left: 280px;
    /* Offset for fixed sidebar */
    padding: 3rem 4rem;
    /* Increased padding for better desktop spacing */
    width: calc(100% - 280px);
    transition: 0.3s;
    background: #f4f6f8;
}

/* Table Responsiveness */
.data-table-container {
    background: var(--white);
    border-radius: 16px;
    overflow-x: auto;
    /* Enable horizontal scroll */
    box-shadow: var(--shadow);
    max-width: 100%;
}

table {
    width: 100%;
    min-width: 800px;
    /* Force minimum width for horizontal scroll */
    border-collapse: collapse;
}

th,
td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .admin-sidebar {
        left: -280px;
        top: 0;
        z-index: 3000;
        /* Higher z-index to overlay everything */
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .admin-sidebar.active {
        left: 0;
    }

    .admin-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
    }

    .stats-container .dashboard-card {
        flex: 1 1 100% !important;
        /* Force stack on mobile */
        margin-bottom: 10px;
    }

    .desktop-only {
        display: none !important;
    }

    .admin-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 2500;
        backdrop-filter: blur(2px);
    }

    .admin-overlay.active {
        display: block;
    }
}

@media (max-width: 600px) {
    .hero-gradient h1 {
        font-size: 2.5rem;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes marqueeSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 10px));
    }
}

/* Skeleton Loading Effects */
.skeleton {
    background: #e0e0e0;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 5px;
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
    display: inline-block;
}

.skeleton-text {
    height: 1.2rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skeleton-title {
    height: 2rem;
    margin-bottom: 1rem;
    width: 60%;
}

.skeleton-card {
    height: 100px;
    border-radius: 12px;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

/*button effect*/
/* From Uiverse.io by zjssun */
.button {
    position: relative;
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    color: #000000;
    cursor: pointer;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.button:active {
    transform: scale(0.96);
}

.button:before,
.button:after,
.btn-accent:before,
.btn-accent:after {
    position: absolute;
    content: "";
    width: 150%;
    left: 50%;
    height: 100%;
    transform: translateX(-50%);
    z-index: -1000;
    background-repeat: no-repeat;
}

.button:hover:before,
.btn-accent:hover:before {
    top: -70%;
    background-image: radial-gradient(circle, #ffffff 20%, transparent 20%),
        radial-gradient(circle, transparent 20%, #ffffff 20%, transparent 30%),
        radial-gradient(circle, #fbfbfb 20%, transparent 20%),
        radial-gradient(circle, #ffffff 20%, transparent 20%),
        radial-gradient(circle, transparent 10%, #ffffff 15%, transparent 20%),
        radial-gradient(circle, #ffffff 20%, transparent 20%),
        radial-gradient(circle, #ffffff 20%, transparent 20%),
        radial-gradient(circle, #ffffff 20%, transparent 20%),
        radial-gradient(circle, #ffffff 20%, transparent 20%);
    background-size: 10% 10%, 20% 20%, 15% 15%, 20% 20%, 18% 18%, 10% 10%, 15% 15%,
        10% 10%, 18% 18%;
    background-position: 50% 120%;
    animation: greentopBubbles 0.6s ease;
}

@keyframes greentopBubbles {
    0% {
        background-position: 5% 90%, 10% 90%, 10% 90%, 15% 90%, 25% 90%, 25% 90%,
            40% 90%, 55% 90%, 70% 90%;
    }

    50% {
        background-position: 0% 80%, 0% 20%, 10% 40%, 20% 0%, 30% 30%, 22% 50%,
            50% 50%, 65% 20%, 90% 30%;
    }

    100% {
        background-position: 0% 70%, 0% 10%, 10% 30%, 20% -10%, 30% 20%, 22% 40%,
            50% 40%, 65% 10%, 90% 20%;
        background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
}

.button:hover::after,
.btn-accent:hover::after {
    bottom: -70%;
    background-image: radial-gradient(circle, #d8bf00 20%, transparent 20%),
        radial-gradient(circle, #d8bf00 20%, transparent 20%),
        radial-gradient(circle, transparent 10%, #d8bf00 15%, transparent 20%),
        radial-gradient(circle, #fff200 20%, transparent 20%),
        radial-gradient(circle, #fff200 20%, transparent 20%),
        radial-gradient(circle, #fff200 20%, transparent 20%),
        radial-gradient(circle, #fff200 20%, transparent 20%);
    background-size: 15% 15%, 20% 20%, 18% 18%, 20% 20%, 15% 15%, 20% 20%, 18% 18%;
    background-position: 50% 0%;
    animation: greenbottomBubbles 0.6s ease;
}

@keyframes greenbottomBubbles {
    0% {
        background-position: 10% -10%, 30% 10%, 55% -10%, 70% -10%, 85% -10%,
            70% -10%, 70% 0%;
    }

    50% {
        background-position: 0% 80%, 20% 80%, 45% 60%, 60% 100%, 75% 70%, 95% 60%,
            105% 0%;
    }

    100% {
        background-position: 0% 90%, 20% 90%, 45% 70%, 60% 110%, 75% 80%, 95% 70%,
            110% 10%;
        background-size: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }
}

/* --- Global Page Loader --- */
#page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#page-preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

#page-preloader .loader-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#page-preloader .loader-wrap .preloader {
  animation: rotate 2.3s cubic-bezier(0.75, 0, 0.5, 1) infinite;
}

@keyframes rotate {
  50% { transform: rotate(360deg); }
  100% { transform: rotate(720deg); }
}

#page-preloader .preloader span {
  --c: #FFD700;
  position: absolute;
  display: block;
  height: 64px;
  width: 64px;
  background: var(--c);
  border: 1px solid var(--c);
  border-radius: 100%;
}

#page-preloader .preloader span:nth-child(1) {
  transform: translate(-28px, -28px);
  animation: shape_1 2.3s cubic-bezier(0.75, 0, 0.5, 1) infinite;
}

@keyframes shape_1 {
  60% { transform: scale(0.4); }
}

#page-preloader .preloader span:nth-child(2) {
  transform: translate(28px, -28px);
  animation: shape_2 2.3s cubic-bezier(0.75, 0, 0.5, 1) infinite;
}

@keyframes shape_2 {
  40% { transform: scale(0.4); }
}

#page-preloader .preloader span:nth-child(3) {
  position: relative;
  border-radius: 0px;
  transform: scale(0.98) rotate(-45deg);
  animation: shape_3 2.3s cubic-bezier(0.75, 0, 0.5, 1) infinite;
}

@keyframes shape_3 {
  50% {
    border-radius: 100%;
    transform: scale(0.5) rotate(-45deg);
  }
  100% {
    transform: scale(0.98) rotate(-45deg);
  }
}

#page-preloader .shadow {
  position: relative;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  height: 16px;
  width: 64px;
  border-radius: 50%;
  background-color: #d9d9d9;
  border: 1px solid #d9d9d9;
  animation: shadow 2.3s cubic-bezier(0.75, 0, 0.5, 1) infinite;
}

@keyframes shadow {
  50% {
    transform: translateX(-50%) scale(0.5);
    border-color: #f2f2f2;
  }
}

/* --- Password Strength Meter --- */
.password-strength-wrapper {
    margin-top: 8px;
}

.password-strength-bar {
    height: 4px;
    width: 100%;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.password-strength-progress {
    height: 100%;
    width: 0;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-weak { width: 33.33%; background-color: #ff4d4d; }
.strength-average { width: 66.66%; background-color: #ffa500; }
.strength-strong { width: 100%; background-color: #2ecc71; }

.password-strength-text {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.password-hint {
    font-size: 0.7rem;
    color: #888;
    margin-top: 4px;
    line-height: 1.2;
}

/* --- Toast Notification System --- */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-left: 5px solid var(--primary);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.4s ease;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

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

.toast.success {
    border-left-color: var(--available);
}

.toast.success .toast-icon {
    color: var(--available);
}

.toast.error {
    border-left-color: var(--offline);
}

.toast.error .toast-icon {
    color: var(--offline);
}

.toast.info {
    border-left-color: #3498db;
}

.toast.info .toast-icon {
    color: #3498db;
}

.toast.warning {
    border-left-color: #f39c12;
}

.toast.warning .toast-icon {
    color: #f39c12;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 3px;
}

.toast-message {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

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

/* Utilities */
.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.hero-glass-card {
    padding: 3.5rem;
    max-width: 650px;
    margin-right: auto;
}

/* --- Premium Star Rating --- */
.radio {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-direction: row-reverse;
}

.radio>input {
    position: absolute;
    appearance: none;
}

.radio>label {
    cursor: pointer;
    font-size: 30px;
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.radio>label>svg {
    fill: #ccc;
    transition: fill 0.3s ease;
    width: 35px;
    height: 35px;
}

.radio>label::before,
.radio>label::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #ff9e0b;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.radio>label::before {
    top: -15px;
    left: 50%;
    transform: translateX(-50%) scale(0);
}

.radio>label::after {
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%) scale(0);
}

.radio>label:hover::before,
.radio>label:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1.5);
    animation: particle-explosion 1s ease-out;
}

.radio>label:hover {
    transform: scale(1.2);
}

.radio>label:hover>svg,
.radio>label:hover~label>svg {
    fill: #ff9e0b;
    filter: drop-shadow(0 0 15px rgba(255, 158, 11, 0.9));
    animation: shimmer 1s ease infinite alternate;
}

.radio>input:checked+label>svg,
.radio>input:checked+label~label>svg {
    fill: #ff9e0b;
    filter: drop-shadow(0 0 15px rgba(255, 158, 11, 0.9));
    animation: pulse 0.8s infinite alternate;
}

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

    100% {
        transform: scale(1.1);
    }
}

@keyframes particle-explosion {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes shimmer {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 158, 11, 0.5));
    }

    100% {
        filter: drop-shadow(0 0 20px rgba(255, 158, 11, 1));
    }
}

.radio>input:checked+label:hover>svg,
.radio>input:checked+label:hover~label>svg {
    fill: #e58e09;
}

.radio input:checked~label svg {
    fill: #ffa723;
}

/* --- Status Badges --- */
.status-badge.status-online {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    border: 1px solid #c8e6c9 !important;
}

.status-badge.status-offline {
    background: #ffebee !important;
    color: #d32f2f !important;
    border: 1px solid #ffcdd2 !important;
}

.status-badge.status-pending {
    background: #fff3e0 !important;
    color: #ef6c00 !important;
    border: 1px solid #ffe0b2 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Premium Footer
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
    background: #0b0b0b;
    color: #fff;
    padding: 60px 8%;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #FFC107;
    font-weight: 800;
}

.footer-brand p {
    color: #aaa;
    line-height: 1.7;
    font-size: 14px;
}

.footer-columns {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: #fff;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: #aaa;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.3s, transform 0.3s;
}

.footer-col a:hover {
    color: #FFC107;
    transform: translateX(5px);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #333, transparent);
    margin: 40px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-left p {
    color: #666;
    font-size: 13px;
    margin: 0;
}

.footer-center a {
    margin: 0 10px;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-center a:hover {
    color: #FFC107;
}

.footer-right a {
    margin-left: 15px;
    font-size: 18px;
    text-decoration: none;
    color: #888;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.footer-right a:hover {
    color: #FFC107;
    transform: scale(1.2);
}

/* ── Footer Mobile Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .footer {
        padding: 40px 6%;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-columns {
        flex-direction: column;
        gap: 25px;
        width: 100%;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col a:hover {
        transform: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .footer-right a {
        margin: 0 8px;
    }
}

/* --- Premium FAQ Accordion Styles --- */
.faq-section {
    padding: 80px 5%;
    background: #fdfdfd;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--primary);
    transition: transform 0.4s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.5);
}

.faq-answer p {
    padding: 0 28px 22px;
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Active State */
.faq-item.active {
    border-color: var(--primary);
    background: #fff;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Large enough for content */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 20px;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 1.05rem;
    }

    .faq-answer p {
        padding: 0 20px 18px;
        font-size: 0.95rem;
    }
}

/* --- Ride Completion Pop Effect --- */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--primary);
    top: 50%;
    left: 50%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    animation: confetti-fall 2s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(360deg);
        opacity: 0;
    }
}

/* --- Real-Time Tracking Maps --- */
.tracking-map-container {
    width: 100%;
    height: 350px;
    margin: 15px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

#tracking-map,
#driver-tracking-map {
    width: 100%;
    height: 100%;
    background: #f0f4f8;
}

.rickshaw-marker svg {
    transition: transform 0.3s ease-out;
}

.pickup-icon i,
.dest-icon i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ── SOS Emergency System Animations ─────────────────────────────────────── */
@keyframes sosPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.sos-alert-row {
    background: rgba(220, 38, 38, 0.05) !important;
    border-left: 4px solid #dc2626 !important;
    animation: sosRowPulse 2s infinite;
}

@keyframes sosRowPulse {
    0% { background: rgba(220, 38, 38, 0.05); }
    50% { background: rgba(220, 38, 38, 0.12); }
    100% { background: rgba(220, 38, 38, 0.05); }
}

.sos-badge {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    margin-top: 4px;
    animation: flashSOS 1s infinite;
}

@keyframes flashSOS {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}