/* VahanLoad - Main Stylesheet */
:root {
    --primary: #4F46E5;
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --secondary: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #334155;
    background-color: #f8fafc;
}

/* Navbar */
.navbar-dark.bg-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    padding: 0.5rem 0;
}
.navbar-dark .nav-link { color: rgba(255,255,255,0.85) !important; font-weight: 500; font-size: 0.9rem; }
.navbar-dark .nav-link:hover, .navbar-dark .nav-link.active { color: #fff !important; }
.bg-primary-custom { background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important; }
.bg-primary-custom-light { background: #eef2ff !important; }
.bg-primary-custom { color: #fff; }

/* Hero */
.hero-section { background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 50%, #f8fafc 100%); padding: 4rem 0 3rem; }
.min-vh-75 { min-height: 65vh; }
.hero-content { position: relative; z-index: 2; }

/* Cards */
.card { border-radius: 12px; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important; }
.step-card:hover .step-icon { background: var(--primary) !important; color: #fff !important; transition: all 0.3s; }
.feature-card:hover { transform: translateY(-5px); }
.feature-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }

/* Buttons */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success { background: var(--success); border-color: var(--success); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }

/* Forms */
.form-control:focus, .form-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 0.2rem rgba(79,70,229,0.15); }
.form-label { font-size: 0.875rem; margin-bottom: 0.35rem; }

/* Badges */
.badge { font-weight: 500; padding: 0.35em 0.65em; font-size: 0.75rem; }

/* Tables */
.table { font-size: 0.875rem; }
.table th { font-weight: 600; color: #475569; border-bottom-width: 2px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.table td { vertical-align: middle; }

/* Dashboard Sidebar */
.sidebar { min-height: calc(100vh - 70px); background: var(--dark); width: 260px; position: fixed; top: 70px; left: 0; z-index: 1040; overflow-y: auto; transition: all 0.3s; }
.sidebar .nav-link { color: #94a3b8; padding: 0.75rem 1.25rem; font-size: 0.9rem; display: flex; align-items: center; border-radius: 8px; margin: 2px 10px; transition: all 0.2s; }
.sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.sidebar .nav-link.active { color: #fff; background: var(--primary); font-weight: 500; }
.sidebar .nav-link i { width: 24px; text-align: center; margin-right: 10px; font-size: 1.1rem; }
.sidebar .nav-section { color: #475569; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; padding: 1rem 1.25rem 0.5rem; font-weight: 600; }
.sidebar-user { padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.1); }

.main-content { margin-left: 260px; padding: 1.5rem; min-height: calc(100vh - 70px); }
@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .main-content { margin-left: 0; }
}

/* Stats Cards */
.stat-card { border-radius: 12px; padding: 1.25rem; border: none; }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; color: var(--dark); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--gray); margin-top: 0.25rem; }

/* Load Cards */
.load-card { border-radius: 12px; border: 1px solid var(--border); transition: all 0.2s; }
.load-card:hover { border-color: var(--primary-light); box-shadow: 0 4px 15px rgba(79,70,229,0.1); }
.load-card .route-info { display: flex; align-items: center; gap: 0.5rem; }
.load-card .route-arrow { color: var(--primary); font-size: 1.2rem; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-item::before { content: ''; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--border); border: 2px solid #fff; }
.timeline-item.active::before { background: var(--primary); }
.timeline-item.completed::before { background: var(--success); }
.timeline-item.pending::before { background: var(--border); }

/* Map Container */
.map-container { border-radius: 12px; overflow: hidden; height: 400px; }

/* Footer */
.footer a:hover { color: var(--primary-light) !important; }

/* Pagination */
.page-link { color: var(--primary); border-radius: 8px; margin: 0 2px; }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.3s ease-in; }

/* Responsive */
@media (max-width: 768px) {
    .hero-section { padding: 2rem 0; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-stats { gap: 1rem !important; }
    .stat-card .stat-value { font-size: 1.2rem; }
}

/* Print */
@media print {
    .sidebar, .navbar, .footer, .btn, .no-print { display: none !important; }
    .main-content { margin-left: 0 !important; padding: 0 !important; }
}
