/* ==========================================================================
   TransportBilty.com - Standardized Enterprise SaaS Design System
   Calibrated for Clean, Compact, Professional Dimensions & High Efficiency
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
    /* Brand Accent Colors */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-dark: #1e3a8a;
    --primary-glow: rgba(37, 99, 235, 0.25);
    --primary-subtle: #eff6ff;
    
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.25);
    
    --secondary: #475569;
    --secondary-hover: #334155;
    
    --success: #10b981;
    --success-light: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #047857;
    
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #b45309;
    
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --danger-border: #fecaca;
    --danger-text: #b91c1c;

    /* Backgrounds & Surfaces */
    --bg-main: #f8fafc;
    --surface-card: #ffffff;
    --surface-subtle: #f1f5f9;
    --surface-dark: #090d16;
    --surface-sidebar: #0b1120;
    
    /* Borders & Lines */
    --border-light: #e2e8f0;
    --border-subtle: #edf2f7;
    --border-dark: #1e293b;

    /* Typography */
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    /* Standard Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 20px -3px rgba(15, 23, 42, 0.09), 0 4px 6px -2px rgba(15, 23, 42, 0.04);

    /* Calibrated Radii */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ==========================================================================
   Base & Standard Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 14px; /* Standard Enterprise 14px Base */
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-body);
    font-size: 0.885rem; /* ~12.4px - 13.5px standard */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    color: var(--text-heading);
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.25;
}

h1 { font-size: 1.65rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.12rem; }
h4 { font-size: 0.98rem; }
h5 { font-size: 0.88rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Portal Sidebar Architecture
   ========================================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-main);
}

.app-sidebar {
    width: 250px;
    background: var(--surface-sidebar);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.18);
    z-index: 1000;
    transition: all 0.25s ease;
}

.sidebar-header {
    padding: 1.15rem 1.15rem 0.95rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
}

.sidebar-brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.sidebar-brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    line-height: 1.1;
}

.sidebar-brand-text span {
    color: #38bdf8;
}

.sidebar-brand-sub {
    font-size: 0.64rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1px;
}

.sidebar-menu {
    list-style: none;
    padding: 0.85rem 0.65rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
    padding: 0.85rem 0.65rem 0.3rem 0.65rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.52rem 0.75rem;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.83rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.sidebar-link i {
    font-size: 0.98rem;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link:hover i {
    color: #38bdf8;
}

.sidebar-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    font-weight: 700;
}

.sidebar-footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.user-profile-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #1e293b;
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-info-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    max-width: 125px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info-role {
    font-size: 0.66rem;
    color: #38bdf8;
    font-weight: 600;
}

/* ==========================================================================
   Portal Top Bar & Containers
   ========================================================================== */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-main);
    overflow-x: hidden;
}

.app-topbar {
    min-height: 54px;
    height: auto;
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-xs);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.topbar-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.app-body {
    padding: 1.35rem 1.5rem;
    flex: 1;
    max-width: 1560px;
    width: 100%;
    margin: 0 auto;
}

/* Responsive Portal Layout Grids */
.portal-grid-2col {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 1.35rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .portal-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }
}

/* ==========================================================================
   Stat Cards & KPI Widgets
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}

.stat-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.1;
}

.stat-icon-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-green { background: #ecfdf5; color: #10b981; }
.icon-orange { background: #fff7ed; color: #f97316; }
.icon-purple { background: #faf5ff; color: #9333ea; }

/* ==========================================================================
   Cards & Containers
   ========================================================================== */
.card-box {
    background: var(--surface-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.card-header-flex {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
}

/* ==========================================================================
   Buttons & Controls (Standardized Dimensions)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    font-weight: 600;
    font-size: 0.84rem;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    text-align: center;
    line-height: 1.35;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff !important;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-body);
    border-color: var(--border-light);
}

.btn-secondary:hover {
    background: #f8fafc;
    color: var(--text-heading);
    border-color: #cbd5e1;
}

.btn-success {
    background: #10b981;
    color: #ffffff !important;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-warning {
    background: #f59e0b;
    color: #0f172a !important;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.btn-danger {
    background: #ef4444;
    color: #ffffff !important;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.28rem 0.65rem;
    font-size: 0.77rem;
    border-radius: var(--radius-xs);
}

.btn-lg {
    padding: 0.65rem 1.35rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
}

/* ==========================================================================
   Badges & Pills
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-booked { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-intransit { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-reachedhub { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-outfordelivery { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-delivered { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-cancelled { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ==========================================================================
   Data Tables (Compact & Crisp)
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.835rem;
    text-align: left;
}

.custom-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.65rem 0.85rem;
    border-bottom: 1.5px solid var(--border-light);
}

.custom-table td {
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.custom-table tbody tr:hover {
    background: #f8fafc;
}

/* ==========================================================================
   Form Controls (Standard 36-38px Input Heights)
   ========================================================================== */
.form-group {
    margin-bottom: 0.95rem;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.28rem;
}

.form-control, .form-select {
    width: 100%;
    height: 36px;
    padding: 0.42rem 0.75rem;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--text-heading);
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

textarea.form-control {
    height: auto;
    min-height: 70px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.form-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 1.35rem 0 0.85rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* ==========================================================================
   Mobile Responsive Sidebar & Drawer Mechanics
   ========================================================================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
}

.mobile-toggle-btn {
    display: none;
    background: #f1f5f9;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xs);
    padding: 0.35rem 0.6rem;
    font-size: 1.1rem;
    color: var(--text-heading);
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .mobile-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .app-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        width: 250px;
        z-index: 1050;
        transition: transform 0.25s ease;
        display: flex !important;
    }

    .app-sidebar.show-sidebar {
        transform: translateX(260px);
    }

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

    .app-topbar {
        padding: 0.45rem 0.85rem;
    }

    .topbar-title {
        font-size: 0.92rem;
    }

    .topbar-actions .badge {
        display: none !important;
    }

    .app-body {
        padding: 1rem 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .custom-table th, .custom-table td {
        padding: 0.55rem 0.65rem;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Public Website Hero, Features & Pricing Cards
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.pricing-price {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-heading);
    margin: 0.75rem 0 0.25rem 0;
    line-height: 1;
}

.pricing-features {
    list-style: none;
    margin: 1.25rem 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.84rem;
    color: var(--text-body);
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Public Landing Page Styles (Hero Section, Grids, Previews)
   ========================================================================== */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-subtle);
    color: var(--primary);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #bfdbfe;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 2.85rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-search-box {
    display: flex;
    gap: 0.5rem;
    background: #ffffff;
    padding: 0.4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    max-width: 540px;
    margin-bottom: 1.5rem;
}

.hero-search-box input {
    flex: 1;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-heading);
    background: transparent;
    outline: none;
}

.hero-search-box input::placeholder {
    color: var(--text-light);
}

.hero-search-box button {
    height: 38px;
    padding: 0 1.25rem;
    font-weight: 600;
    font-size: 0.88rem;
}

.hero-card-preview {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    position: relative;
    transition: transform 0.3s ease;
}

.hero-card-preview:hover {
    transform: translateY(-5px);
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-search-box {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
}


