/* =========================================================
   Trucking Management System - Custom Styles
   Clean, professional, no unnecessary animation.
   ========================================================= */

:root {
    --brand-dark: #1e2a38;
    --brand-primary: #2c5f8a;
    --brand-light: #f4f6f9;
    --sidebar-width: 240px;
}

body {
    background-color: var(--brand-light);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Login Page ---------- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
}
.login-card {
    width: 100%;
    max-width: 380px;
    border: none;
    border-radius: 10px;
}

/* ---------- Layout ---------- */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--brand-dark);
    color: #fff;
    flex-shrink: 0;
    min-height: 100vh;
    position: sticky;
    top: 0;
}
.sidebar .brand {
    padding: 1rem;
    font-size: 1.15rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.65rem 1rem;
    border-left: 3px solid transparent;
}
.sidebar .nav-link:hover {
    background-color: rgba(255,255,255,0.06);
    color: #fff;
}
.sidebar .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-left-color: var(--brand-primary);
    font-weight: 600;
}
.sidebar .nav-link i {
    width: 20px;
    display: inline-block;
    text-align: center;
    margin-right: 8px;
}

.main-content {
    flex-grow: 1;
    min-width: 0;
}

.topbar {
    background-color: #fff;
    border-bottom: 1px solid #e3e6ea;
    padding: 0.75rem 1.25rem;
}

.page-body {
    padding: 1.5rem;
}

/* ---------- Cards / Stats ---------- */
.stat-card {
    border: none;
    border-radius: 10px;
    color: #fff;
}
.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}
.stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.5;
}
.bg-c1 { background-color: #2c5f8a; }
.bg-c2 { background-color: #2f9e44; }
.bg-c3 { background-color: #495057; }
.bg-c4 { background-color: #c92a2a; }
.bg-c5 { background-color: #e8590c; }
.bg-c6 { background-color: #6741d9; }

.card {
    border: 1px solid #e3e6ea;
    border-radius: 8px;
}

.table thead {
    background-color: #f1f3f5;
}

/* Sidebar toggle for mobile */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -260px;
        z-index: 1050;
        transition: left 0.2s ease;
        height: 100vh;
    }
    .sidebar.show {
        left: 0;
    }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1040;
    }
    .sidebar-backdrop.show {
        display: block;
    }
}

footer.app-footer {
    padding: 1rem 1.25rem;
    color: #868e96;
    font-size: 0.85rem;
    text-align: center;
}
