/* 
 * Office Vehicle & Transport Management System ("অফিস যানবাহন ব্যবস্থাপনা")
 * Ultra-Modern Design System & Animation Engine
 */

/* NikoshBAN Font Definitions */
@font-face {
    font-family: 'NikoshBAN';
    src: local('NikoshBAN'),
         local('NikoshBAN (alamincomputer.com)'),
         local('Nikosh'),
         url('../fonts/NikoshBAN.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NikoshBAN';
    src: local('NikoshBAN'),
         local('NikoshBAN (alamincomputer.com)'),
         local('Nikosh'),
         url('../fonts/NikoshBAN.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nikosh';
    src: local('NikoshBAN'),
         local('Nikosh'),
         url('../fonts/Nikosh.ttf') format('truetype'),
         url('../fonts/NikoshBAN.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --primary-subtle: rgba(59, 130, 246, 0.1);
    
    --secondary-color: #475569;
    --success-color: #10b981;
    --success-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --warning-color: #f59e0b;
    --warning-gradient: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
    --danger-color: #ef4444;
    --danger-gradient: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
    --info-color: #06b6d4;
    --info-gradient: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    --purple-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: rgba(226, 232, 240, 0.85);
    --border-focus: #3b82f6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 14px 28px -5px rgba(15, 23, 42, 0.09), 0 6px 12px -3px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 18px 36px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
    
    --sidebar-width: 260px;
    --header-height: 68px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', 'Inter', 'SolaimanLipi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    color: #1e293b;
    font-size: 0.98rem;
    line-height: 1.25;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea, .form-control, .form-select, .btn, .table, h1, h2, h3, h4, h5, h6, .badge, .dropdown-menu, .modal, .card-title {
    font-family: 'Hind Siliguri', 'Inter', 'SolaimanLipi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Ultra-Compact Bengali & English Typography Rhythm (Line-height & Text Spacing) */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    line-height: 1.12;
    margin-top: 0;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

p {
    line-height: 1.24;
    margin-top: 0;
    margin-bottom: 0.25rem;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    line-height: 1.24;
    margin-bottom: 0.3rem;
}

label,
.form-label,
.col-form-label {
    line-height: 1.12;
    margin-top: 0;
    margin-bottom: 0.1rem;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-block;
}

legend {
    line-height: 1.15;
    margin-bottom: 0.18rem;
}

.form-text,
.invalid-feedback,
.valid-feedback {
    line-height: 1.12;
    margin-top: 0.08rem;
    margin-bottom: 0;
}

ul, ol {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

li {
    line-height: 1.22;
    margin-bottom: 0.08rem;
}

.nav-link,
.dropdown-item,
.breadcrumb-item {
    line-height: 1.2;
}

.card-title {
    line-height: 1.14;
    margin-bottom: 0.14rem;
}

.card-subtitle {
    line-height: 1.16;
    margin-bottom: 0.14rem;
}

.table td,
.table th {
    line-height: 1.2;
}

small,
.small,
.text-muted {
    line-height: 1.15;
}

/* Typography Helpers */
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }

/* Custom Modern Badges */
.bg-indigo { background-color: #6366f1 !important; color: #fff; }
.badge {
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.4em 0.8em;
    border-radius: 50rem;
    line-height: 1.25;
    transition: all 0.25s ease;
}

.badge-primary-modern {
    background: var(--primary-subtle);
    color: var(--primary-color);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Landing Page Styles */
.hero-section {
    --hero-bg-c1: #0b132b;
    --hero-bg-c2: #1c2541;
    --hero-bg-c3: #1e3a8a;
    background: linear-gradient(135deg, var(--hero-bg-c1) 0%, var(--hero-bg-c2) 50%, var(--hero-bg-c3) 100%);
    color: #ffffff;
    padding: 48px 0 42px;
    position: relative;
    overflow: hidden;
}

/* Navbar Menu Links (20% Larger, Bold & Zoom Micro-Animation) */
.navbar .nav-link {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    padding: 0.35rem 0.65rem !important;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, background-color 0.2s ease, text-shadow 0.2s ease;
    transform-origin: center center;
}
.navbar .nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.15);
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}
.navbar .nav-link.active {
    color: #93c5fd !important;
}
.navbar .nav-link i {
    transition: transform 0.22s ease;
}
.navbar .nav-link:hover i {
    transform: scale(1.2);
}

/* Orange Login Button in Navbar */
.btn-orange-login {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid #ea580c !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(249, 115, 22, 0.4);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-orange-login:hover, .btn-orange-login:focus {
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
    color: #ffffff !important;
    border-color: #c2410c !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.55);
}

/* 3D Hero Organization Logo Badge */
.hero-3d-logo {
    width: 190px;
    height: 102px;
    border-radius: 50% / 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f8fafc 60%, #e2e8f0 100%);
    border: 2.5px solid #ffffff;
    box-shadow: 
        0 14px 28px -4px rgba(0, 0, 0, 0.55),
        0 6px 12px rgba(0, 0, 0, 0.35),
        inset 0 3px 5px rgba(255, 255, 255, 0.95),
        inset 0 -3px 6px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: hero3dFloat 4s ease-in-out infinite;
}
.hero-3d-logo:hover {
    transform: perspective(800px) translateY(-6px) scale(1.06);
    box-shadow: 
        0 20px 36px -4px rgba(0, 0, 0, 0.65),
        0 10px 18px rgba(0, 0, 0, 0.4),
        inset 0 4px 6px rgba(255, 255, 255, 1),
        inset 0 -3px 6px rgba(0, 0, 0, 0.25);
}

/* 3D Hero Vehicle Image Slider Box */
.hero-3d-carousel {
    border-radius: 22px !important;
    border: 3.5px solid rgba(255, 255, 255, 0.9) !important;
    background: #0f172a;
    box-shadow: 
        0 22px 45px -8px rgba(0, 0, 0, 0.7),
        0 10px 20px -4px rgba(0, 0, 0, 0.45),
        inset 0 2px 4px rgba(255, 255, 255, 0.6) !important;
    overflow: hidden;
    position: relative;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: hero3dFloatCarousel 5s ease-in-out infinite alternate;
}
.hero-3d-carousel:hover {
    transform: perspective(1000px) translateY(-6px) scale(1.03);
    box-shadow: 
        0 28px 55px -6px rgba(0, 0, 0, 0.8),
        0 14px 24px -4px rgba(0, 0, 0, 0.5),
        inset 0 2px 5px rgba(255, 255, 255, 0.8) !important;
}

@keyframes hero3dFloat {
    0%, 100% {
        transform: perspective(800px) translateY(0) rotateX(3deg) rotateY(-2deg);
    }
    50% {
        transform: perspective(800px) translateY(-6px) rotateX(-2deg) rotateY(2deg);
    }
}

@keyframes hero3dFloatCarousel {
    0%, 100% {
        transform: perspective(1000px) translateY(0) rotateX(2deg) rotateY(2deg);
    }
    50% {
        transform: perspective(1000px) translateY(-5px) rotateX(-1deg) rotateY(-2deg);
    }
}

/* Responsive 3D Elements for Mobile & Tablet */
@media (max-width: 991.98px) {
    .hero-3d-logo {
        width: 150px;
        height: 80px;
    }
    .hero-3d-carousel {
        max-width: 100%;
        margin: 0 auto;
    }
    .hero-3d-carousel img {
        height: 220px !important;
    }
}
@media (max-width: 767.98px) {
    .hero-3d-logo {
        width: 140px;
        height: 75px;
    }
    .hero-3d-carousel img {
        height: 195px !important;
    }
}
@media (max-width: 575.98px) {
    .hero-3d-logo {
        width: 130px;
        height: 70px;
    }
    .hero-3d-carousel img {
        height: 175px !important;
    }
}

.hero-bg-image-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    transform-origin: center center;
}

/* Multi-Image Hero Background Slideshow */
.hero-bg-slides-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1), transform 8s ease-out;
    pointer-events: none;
}

.hero-bg-slide.active {
    opacity: var(--hero-bg-opacity, 0.35);
    transform: scale(1.08);
}

/* Hero Animations */
.hero-anim-kenburns {
    animation: heroKenBurns 20s ease-in-out infinite alternate;
}

.hero-anim-pulse {
    animation: heroPulse 12s ease-in-out infinite alternate;
}

.hero-ambient-lights {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.22) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 45%);
    pointer-events: none;
    z-index: 2;
    animation: rotateAmbient 22s linear infinite;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-content-wrap {
    position: relative;
    z-index: 3;
}

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

@keyframes heroKenBurns {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.08) translate(-1%, -1.5%); }
    100% { transform: scale(1.15) translate(1%, 1%); }
}

@keyframes heroPulse {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.04); filter: brightness(1.1); }
    100% { transform: scale(1); filter: brightness(1); }
}

/* ==========================================================================
   Hero Typography (সাদা টেক্সটের নিচে হালকা কালো শ্যাডো)
   ========================================================================== */
.hero-title {
    font-size: 2.65rem;
    font-weight: 700;
    line-height: 1.22;
    margin-bottom: 0.55rem;
    color: #ffffff;
    letter-spacing: -0.01em;
    /* সাদার নিচে হালকা কালো শ্যাডো */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.75), 0 4px 12px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
    font-size: 1.12rem;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    letter-spacing: 0.2px;
    /* সাদার নিচে হালকা কালো শ্যাডো */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* Modern Feature Cards */
.feature-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 26px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(59, 130, 246, 0.35);
}

/* Modern Vehicle Card */
.vehicle-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}
.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(59, 130, 246, 0.35);
}
.vehicle-img-wrap {
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
    background: #f1f5f9;
    position: relative;
}
.vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.vehicle-card:hover .vehicle-img {
    transform: scale(1.06);
}

/* Admin Panel Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}
.admin-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0b132b 0%, #0f172a 100%);
    color: #f1f5f9;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    overflow-y: auto;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}
.admin-sidebar::-webkit-scrollbar {
    width: 5px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 22px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-menu {
    list-style: none;
    padding: 14px 10px;
    margin: 0;
}
.sidebar-menu .menu-header {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #64748b;
    padding: 14px 14px 6px;
    font-weight: 700;
}
.sidebar-menu .menu-item a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    margin-bottom: 3px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.sidebar-menu .menu-item a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}
.sidebar-menu .menu-item.active a {
    color: #ffffff;
    background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.sidebar-menu .menu-item a i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 12px;
    text-align: center;
    transition: transform 0.25s ease;
}
.sidebar-menu .menu-item a:hover i {
    transform: scale(1.15);
}

.admin-main {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f8fafc;
    transition: all 0.3s ease;
}
.admin-topbar {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.admin-content {
    padding: 28px;
    flex: 1;
}

/* Modern Card Containers */
.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    background: #ffffff;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
    box-shadow: var(--shadow-lg);
}

/* Modern KPI Dashboard Cards */
.stat-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #10b981 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(59, 130, 246, 0.35);
}
.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 6px 14px -3px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stat-card:hover .stat-icon {
    transform: scale(1.12) rotate(4deg);
}

/* Modern Quick Action Buttons */
.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.quick-btn i {
    font-size: 1.65rem;
    margin-bottom: 8px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quick-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -4px rgba(59, 130, 246, 0.18);
    border-color: var(--primary-light);
    color: var(--primary-color);
}
.quick-btn:hover i {
    transform: translateY(-3px) scale(1.15);
}
.quick-btn:active {
    transform: translateY(-1px);
}

/* Modern Buttons (.btn) */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.55rem 1.15rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}
.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
.btn-primary {
    background: var(--primary-gradient);
    border: none;
}
.btn-primary:hover {
    box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35);
}
.btn-success {
    background: var(--success-gradient);
    border: none;
}
.btn-success:hover {
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}
.btn-danger {
    background: var(--danger-gradient);
    border: none;
}
.btn-danger:hover {
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}

/* Modern Form Controls */
.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.95rem;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.form-control:focus, .form-select:focus {
    transform: translateY(-1px);
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

/* Modern Custom Table Styling */
.table {
    vertical-align: middle;
}
.table thead th {
    background-color: #f1f5f9;
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 14px;
}
.table-hover tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.table-hover tbody tr:hover {
    background-color: rgba(241, 245, 249, 0.8) !important;
}

/* Modern Subtle Signature Watermark */
.signature-nurul {
    opacity: 0.50;
    font-size: 1.35rem;
    font-weight: 700;
    font-style: italic;
    font-family: 'Brush Script MT', 'Segoe Script', cursive, sans-serif;
    letter-spacing: 1.2px;
    user-select: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.signature-nurul:hover {
    opacity: 0.85;
    transform: scale(1.08);
}

/* Responsive Tablet Navigation (≤991px) */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 1040;
    }
    .admin-sidebar.show {
        transform: translateX(0);
        box-shadow: 6px 0 24px rgba(0, 0, 0, 0.25);
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-topbar {
        padding: 0 16px;
    }
    .admin-content {
        padding: 20px 16px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-section {
        padding: 38px 0 32px;
    }
    /* Sidebar overlay backdrop */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1035;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    .sidebar-overlay.show {
        display: block;
    }
    /* Table responsive horizontal scroll */
    .table-responsive, .table-responsive-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive > .table,
    .table-responsive-wrapper > .table {
        min-width: 600px;
    }

    /* Responsive Filter Pills & DataTables Engine */
    .filter-pill-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 6px;
        margin-bottom: 8px;
        width: 100%;
    }
    .filter-pill-nav::-webkit-scrollbar {
        height: 4px;
    }
    .filter-pill-nav::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 4px;
    }
    .filter-pill-nav .btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 0.82rem;
        padding: 4px 10px;
    }
    /* DataTables mobile styling */
    .dataTables_wrapper {
        width: 100%;
        overflow-x: hidden;
    }
    .dataTables_wrapper .row {
        margin-left: 0;
        margin-right: 0;
    }
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        width: 100%;
        float: none !important;
        text-align: left !important;
        margin-bottom: 8px;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 4px;
        display: block;
    }
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        width: 100%;
        float: none !important;
        text-align: center !important;
        margin-top: 8px;
    }
    .dataTables_wrapper .dataTables_paginate ul.pagination {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 2px;
    }
    .dataTables_wrapper .dataTables_paginate .page-link {
        padding: 0.25rem 0.55rem;
        font-size: 0.78rem;
    }

    /* Stat cards smaller on tablets */
    .stat-card {
        padding: 16px 14px;
    }
    .stat-icon {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }
}

/* Responsive Mobile (≤767px) */
@media (max-width: 767.98px) {
    body {
        line-height: 1.2;
    }
    .hero-title {
        font-size: 1.6rem;
        line-height: 1.1;
        margin-bottom: 0.22rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.22;
        margin-bottom: 0.35rem;
    }
    .hero-section {
        padding: 26px 0 20px;
        text-align: center;
    }
    p {
        line-height: 1.22;
        margin-bottom: 0.2rem;
    }
    label, .form-label, .col-form-label {
        line-height: 1.1;
        margin-top: 0;
        margin-bottom: 0.08rem;
    }
    .admin-content {
        padding: 14px 10px;
    }
    .admin-topbar {
        padding: 0 10px;
        height: 56px;
    }
    /* Stat cards on mobile (2 per row compact grid) */
    .stat-card {
        padding: 12px 10px 10px !important;
        position: relative;
        min-height: 96px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        text-align: left !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
        overflow: hidden;
    }
    .stat-card .stat-icon {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 32px !important;
        height: 32px !important;
        font-size: 0.95rem !important;
    }
    .stat-card h3, .stat-card h4 {
        font-size: 1.45rem !important;
        margin: 3px 0 2px !important;
        line-height: 1.1;
        font-weight: 700 !important;
    }
    .stat-card small.text-muted {
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
        padding-right: 32px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        width: 100%;
    }
    .stat-card small:last-child {
        font-size: 0.74rem !important;
        white-space: nowrap !important;
        display: block !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    /* Cards compact */
    .card {
        border-radius: var(--radius-md);
    }
    .card-body {
        padding: 12px 10px !important;
    }
    .card-header {
        padding: 10px 12px !important;
    }
    /* Quick action buttons compact */
    .quick-btn {
        padding: 10px 6px;
        font-size: 0.78rem;
    }
    .quick-btn i {
        font-size: 1.35rem;
        margin-bottom: 5px;
    }
    /* Buttons compact on mobile */
    .btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.88rem;
    }
    /* Form compact */
    .form-control, .form-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    /* Table compact */
    .table thead th {
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    .table td {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
    /* Vehicle brand box compact on mobile */
    .vehicle-brand-box {
        padding: 4px 8px 5px 6px !important;
        max-width: calc(100% - 46px) !important;
        box-sizing: border-box;
    }
    .vehicle-brand-box .v-logo-badge {
        width: 26px !important;
        height: 26px !important;
        margin-right: 5px !important;
    }
    .vehicle-brand-box .v-icon-badge {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.85rem !important;
        margin-left: 5px !important;
        margin-right: 0 !important;
    }
    .vehicle-brand-box span.fw-bold {
        font-size: 0.82rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .vehicle-brand-box .v-headlight-l,
    .vehicle-brand-box .v-headlight-r {
        display: none !important;
    }
    /* Floating badge on carousel on mobile */
    .hero-content-wrap .position-absolute.bottom-0 {
        padding: 6px 10px !important;
        margin: 8px !important;
        max-width: calc(100% - 16px);
    }
    .hero-content-wrap .position-absolute.bottom-0 .fw-bold {
        font-size: 0.78rem !important;
    }
    .hero-content-wrap .position-absolute.bottom-0 small {
        font-size: 0.68rem !important;
    }
    /* Modal full width on mobile */
    .modal-dialog {
        margin: 8px;
    }
    .modal-content {
        border-radius: var(--radius-md);
    }
    /* Dropdown wider on mobile */
    .dropdown-menu {
        min-width: 260px;
    }
}

/* Responsive Small Phone (≤575px) */
@media (max-width: 575.98px) {
    body {
        font-size: 0.88rem;
        line-height: 1.18;
    }
    .hero-title {
        font-size: 1.35rem;
        line-height: 1.1;
        margin-bottom: 0.18rem;
    }
    .hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.2;
        margin-bottom: 0.28rem;
    }
    p {
        line-height: 1.18;
        margin-bottom: 0.15rem;
    }
    label, .form-label, .col-form-label {
        line-height: 1.08;
        margin-top: 0;
        margin-bottom: 0.06rem;
    }
    .admin-content {
        padding: 10px 8px;
    }
    .admin-topbar {
        padding: 0 8px;
        height: 50px;
    }
    .stat-card {
        padding: 10px 8px 8px !important;
        min-height: 90px !important;
    }
    .stat-card .stat-icon {
        top: 6px;
        right: 6px;
        width: 28px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
    }
    .stat-card h3, .stat-card h4 {
        font-size: 1.35rem !important;
    }
    .stat-card small.text-muted {
        font-size: 0.74rem !important;
        padding-right: 28px !important;
    }
    /* Full width buttons on small phones */
    .btn-group-sm > .btn, .btn-sm {
        font-size: 0.8rem;
        padding: 0.35rem 0.65rem;
    }
    /* Vehicle brand box: compact on small phones */
    .vehicle-brand-box {
        padding: 3px 6px 4px 5px !important;
        max-width: calc(100% - 44px) !important;
    }
    .vehicle-brand-box .v-icon-badge {
        display: none !important;
    }
    .vehicle-brand-box span.fw-bold {
        font-size: 0.76rem !important;
    }
    /* Booking reason pills wrap */
    #booking_reason_group .form-check-inline {
        flex: 1 1 calc(50% - 8px);
        padding: 6px 8px !important;
        font-size: 0.82rem;
        display: flex;
        align-items: center;
    }
    /* Page heading compact */
    h1, .h1 { font-size: 1.35rem; line-height: 1.1; margin-bottom: 0.15rem; }
    h2, .h2 { font-size: 1.2rem; line-height: 1.1; margin-bottom: 0.15rem; }
    h3, .h3 { font-size: 1.05rem; line-height: 1.12; margin-bottom: 0.14rem; }
    h4, .h4 { font-size: 0.95rem; line-height: 1.12; margin-bottom: 0.12rem; }
    h5, .h5 { font-size: 0.9rem; line-height: 1.12; margin-bottom: 0.1rem; }
    h6, .h6 { font-size: 0.85rem; line-height: 1.12; margin-bottom: 0.08rem; }
    /* Badge compact */
    .badge {
        padding: 0.3em 0.6em;
        font-size: 0.72rem;
    }
    /* Collapse sections: no extra margin */
    .collapse .p-3 {
        padding: 0.75rem !important;
    }
}

/* ==========================================================================
   Modern UI Animation Engine & Micro-Interactions ("সকল আধুনিক ইউআই অ্যানিমেশন")
   ========================================================================== */

/* Keyframe Animations */
@keyframes uiFadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes uiFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes uiPopIn {
    0% {
        opacity: 0;
        transform: scale(0.94);
    }
    70% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatGentle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes bellRinging {
    0%, 100% { transform: rotate(0); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-12deg); }
    45% { transform: rotate(8deg); }
    60% { transform: rotate(-6deg); }
    75% { transform: rotate(3deg); }
}

@keyframes badgeGlowDanger {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* Page Entrance Cascades */
.admin-content, .container, .hero-section {
    animation: uiFadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.admin-topbar {
    animation: uiFadeInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Staggered Row Entrance */
.row > [class*="col-"] {
    animation: uiFadeInUp 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.row > [class*="col-"]:nth-child(1) { animation-delay: 0.03s; }
.row > [class*="col-"]:nth-child(2) { animation-delay: 0.06s; }
.row > [class*="col-"]:nth-child(3) { animation-delay: 0.09s; }
.row > [class*="col-"]:nth-child(4) { animation-delay: 0.12s; }
.row > [class*="col-"]:nth-child(5) { animation-delay: 0.15s; }
.row > [class*="col-"]:nth-child(6) { animation-delay: 0.18s; }
.row > [class*="col-"]:nth-child(7) { animation-delay: 0.21s; }
.row > [class*="col-"]:nth-child(8) { animation-delay: 0.24s; }

/* Notification Bell Ringing */
.admin-topbar .btn:has(.badge.bg-danger) i {
    animation: bellRinging 3.2s ease infinite;
    transform-origin: top center;
}

.badge.bg-danger {
    animation: badgeGlowDanger 2s infinite;
}

/* Dropdown Menus & Modals */
.dropdown-menu {
    animation: uiPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: top right;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.modal.fade .modal-dialog {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Alerts Slide-In */
.alert {
    animation: uiFadeInDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   Vehicle-Themed Brand Badge Box ("যানবাহন আকৃতির সুন্দর ব্র্যান্ড বক্স")
   ========================================================================== */

.vehicle-brand-box {
    display: inline-flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0b1a3e 0%, #1e3a8a 50%, #0f275e 100%);
    border: 2px solid #3b82f6;
    border-radius: 14px 18px 12px 12px;
    padding: 5px 14px 6px 10px;
    box-shadow: 0 8px 20px -4px rgba(30, 64, 175, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.25);
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    animation: vehicleGentleVibe 4s ease-in-out infinite;
}

/* Windshield shine top bar */
.vehicle-brand-box::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 10px;
    right: 10px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.7), transparent);
    border-radius: 4px;
}

/* Headlights */
.vehicle-brand-box .v-headlight-l,
.vehicle-brand-box .v-headlight-r {
    position: absolute;
    width: 4px;
    height: 10px;
    border-radius: 2px;
    background: #fde047;
    box-shadow: 0 0 6px #fde047, 0 0 12px rgba(253, 224, 71, 0.8);
    animation: headlightFlicker 3s infinite;
}
.vehicle-brand-box .v-headlight-l { left: -3px; top: 50%; transform: translateY(-50%); }
.vehicle-brand-box .v-headlight-r { right: -3px; top: 50%; transform: translateY(-50%); }

/* Wheels at bottom */
.vehicle-brand-box .v-wheel-l,
.vehicle-brand-box .v-wheel-r {
    position: absolute;
    bottom: -5px;
    width: 14px;
    height: 6px;
    background: #0f172a;
    border: 1.5px solid #64748b;
    border-radius: 3px 3px 2px 2px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.vehicle-brand-box .v-wheel-l { left: 12px; }
.vehicle-brand-box .v-wheel-r { right: 12px; }

/* Organization Official Logo in Brand Box */
.vehicle-brand-box .v-logo-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    margin-right: 8px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vehicle-brand-box .v-logo-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.vehicle-brand-box:hover .v-logo-badge {
    transform: scale(1.12) rotate(4deg);
}

/* Vehicle Icon Grille */
.vehicle-brand-box .v-icon-badge {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #ffffff;
    margin-right: 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), inset 0 2px 3px rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vehicle-brand-box:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 26px -4px rgba(37, 99, 235, 0.5), inset 0 2px 6px rgba(255, 255, 255, 0.4);
    border-color: #60a5fa;
    color: #ffffff;
}

.vehicle-brand-box:hover .v-icon-badge {
    transform: scale(1.1) rotate(-4deg);
}

.vehicle-brand-box:hover .v-wheel-l,
.vehicle-brand-box:hover .v-wheel-r {
    transform: translateY(2px);
    border-color: #94a3b8;
}

@keyframes vehicleGentleVibe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes headlightFlicker {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; box-shadow: 0 0 12px #fde047, 0 0 18px rgba(253, 224, 71, 0.9); }
}

/* Light variant for white backgrounds (Admin Topbar / Headers) */
.vehicle-brand-box.vehicle-brand-light {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    border: 2px solid #3b82f6;
    color: #0f172a;
    box-shadow: 0 4px 14px -2px rgba(59, 130, 246, 0.2);
}
.vehicle-brand-box.vehicle-brand-light .v-title-text {
    color: #0f172a !important;
}
.vehicle-brand-box.vehicle-brand-light .v-sub-text {
    color: #475569 !important;
}

/* Modal Stacking Context & Backdrop Fix */
.modal-backdrop {
    z-index: 1050 !important;
}
.modal {
    z-index: 1060 !important;
}

/* Flatpickr Modern Custom Styling */
.flatpickr-calendar {
    font-family: 'NikoshBAN', 'Nikosh', sans-serif !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    padding: 6px;
    background: #ffffff !important;
}
.flatpickr-months {
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    background: #f8fafc;
    padding: 6px 0;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700;
}
.flatpickr-day.today {
    border-color: var(--primary-light) !important;
    font-weight: 700;
}
.flatpickr-day:hover {
    background: #e0e7ff !important;
}
.flatpickr-time {
    border-top: 1px solid #e2e8f0 !important;
}
input.flatpickr-input[readonly] {
    background-color: #ffffff !important;
    cursor: pointer;
}


