/* RideHub - Bike & Car Rental System */
:root {
    --primary: #1a56db;
    --primary-dark: #1e429f;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --success: #059669;
    --danger: #dc2626;
    --light: #f8fafc;
    --gray: #64748b;
    --sidebar-width: 260px;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background: #f1f5f9;
    line-height: 1.6;
}

.navbar-ridehub {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 100%);
    padding: 0.75rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.navbar-ridehub .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
}

.navbar-ridehub .navbar-brand span { color: var(--accent); }

.navbar-ridehub .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.navbar-ridehub .nav-link:hover,
.navbar-ridehub .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-accent:hover {
    background: #d97706;
    color: #fff;
    transform: translateY(-1px);
}

.btn-primary-custom {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.hero-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a56db 50%, #2563eb 100%);
    color: #fff;
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 540px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat .number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat .label {
    font-size: 0.85rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-custom {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
}

.vehicle-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.vehicle-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.features-section {
    padding: 5rem 0;
    background: #fff;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.section-title {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray);
    margin-bottom: 3rem;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 4rem 0;
    border-radius: var(--radius);
    margin: 3rem 0;
}

.footer-ridehub {
    background: var(--secondary);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
}

.footer-ridehub h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-ridehub a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-ridehub a:hover { color: var(--accent); }

.auth-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-card .card-header {
    background: var(--secondary);
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    border: none;
}

.auth-card .card-header h4 {
    margin: 0;
    font-weight: 700;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--secondary) 0%, #1e3a5f 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s;
}

.admin-sidebar .sidebar-brand {
    padding: 1.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar .sidebar-brand span { color: var(--accent); }

.admin-sidebar .nav-section {
    padding: 1rem 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.75);
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--accent);
}

.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

.admin-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
}

.admin-topbar {
    background: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-main {
    padding: 2rem;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.stat-card.success { border-left-color: var(--success); }
.stat-card.warning { border-left-color: var(--accent); }
.stat-card.danger { border-left-color: var(--danger); }
.stat-card.info { border-left-color: #0891b2; }

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.stat-card .stat-label {
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.table-custom {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-custom thead {
    background: #f8fafc;
}

.table-custom th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    border-bottom: 2px solid #e2e8f0;
    padding: 1rem;
}

.table-custom td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-weight: 800;
    margin: 0;
}

.page-header p {
    color: var(--gray);
    margin: 0.25rem 0 0;
}

.user-dashboard-header {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: #fff;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 var(--radius) var(--radius);
}

.filter-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.vehicle-detail-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
}

.detail-spec {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-spec i {
    color: var(--primary);
    width: 24px;
}

.rating-stars { color: var(--accent); }

@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-content { margin-left: 0; }
    .hero-section h1 { font-size: 2rem; }
}

@media (max-width: 576px) {
    .hero-stats { gap: 1rem; }
    .admin-main { padding: 1rem; }
}
