/* Transport ERP Custom Styles */

:root {
    --app-primary: #0d6efd;
    --app-sidebar-width: 240px;
}

/* --- Sidebar --- */
.app-sidebar {
    overflow-y: auto;
    flex-shrink: 0;
}

.app-sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    color: #444;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.app-sidebar-link:hover {
    background: #f0f4ff;
    color: var(--app-primary);
    border-left-color: var(--app-primary);
}

.app-sidebar-link.active {
    background: #e8f0fe;
    color: var(--app-primary);
    font-weight: 600;
    border-left-color: var(--app-primary);
}

/* --- Cards --- */
.app-stat-card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1) !important;
}

.app-stat-card .card-body {
    padding: 1.25rem;
}

.app-stat-card .stat-icon {
    font-size: 2rem;
    opacity: 0.2;
}

/* --- Tables --- */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    border-top: none;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* --- Badges --- */
.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* --- Empty states --- */
.app-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.app-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
}

/* --- Forms --- */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
}

/* --- Page title area --- */
.app-page-title {
    margin-bottom: 1.5rem;
}

.app-page-title h4 {
    font-weight: 700;
    margin: 0;
}

/* --- Flash messages --- */
.alert-dismissible .btn-close {
    font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 576px) {
    .app-stat-card .card-body {
        padding: 1rem;
    }

    .app-page-title h4 {
        font-size: 1.1rem;
    }

    .table {
        font-size: 0.8rem;
    }

    .table td {
        padding: 0.65rem 0.75rem;
    }

    .btn-sm {
        padding: 0.35rem 0.6rem;
        font-size: 0.85rem;
    }
}

/* --- Tab scrolling on mobile --- */
.nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar {
    display: none;
}
.nav-tabs .nav-item {
    white-space: nowrap;
}

/* --- Print styles for reports --- */
@media print {
    .navbar, .app-sidebar, .offcanvas, .btn, .no-print {
        display: none !important;
    }
    body { background: white !important; }
    .app-print-table { width: 100% !important; }
}
