/* =============== GLOBAL LAYOUT ================= */

body {
    background: #f5f7fb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* =============== NAVBAR / BRAND ================= */

.navbar {
    font-size: 0.9rem;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: .03em;
    font-size: 1rem;
}

.logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0d6efd11;
    border: 1px solid #0d6efd33;
}

.logo-circle img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    color: #4b5563;
}

.nav-link:hover {
    color: #0d6efd;
}

.nav-link.active {
    color: #0d6efd;
    font-weight: 600;
}

/* =============== DASHBOARD MAIN ================= */

.dash-page {
    padding-top: 0.75rem;
}

.dash-page h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.dash-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

/* KPI cards */

.kpi-card {
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 8px 18px rgba(15,23,42,0.04);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    background: #ffffff;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15,23,42,0.08);
}

.kpi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #6c757d;
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0;
}

.kpi-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    background: #f8f9fa;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Section cards (Recent shipments, Today at a glance, etc.) */

.section-card {
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 6px 14px rgba(15,23,42,0.04);
    background: #ffffff;
}

.section-card-header {
    border-bottom: 1px solid rgba(0,0,0,0.04);
    background: #f8f9fa;
    border-radius: 1rem 1rem 0 0;
    padding: 0.75rem 1rem;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.section-subtitle {
    font-size: 0.8rem;
    color: #6c757d;
}

/* =============== TABLES ================= */

.table-dashboard thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #6c757d;
    border-bottom-width: 1px;
}

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

/* =============== STATUS BADGES ================= */

.badge-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.badge-status-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-status-in-transit {
    background: #cff4fc;
    color: #055160;
}

.badge-status-out-for-delivery {
    background: #e2e3ff;
    color: #343aeb;
}

.badge-status-delivered {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-status-issue {
    background: #f8d7da;
    color: #842029;
}

.badge-status-returned {
    background: #fce4d6;
    color: #9a3412;
}

.badge-status-default {
    background: #e2e3e5;
    color: #4b5563;
}

/* =============== SMALL UTILITIES ================= */

.pill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #f8f9fa;
    color: #6c757d;
}

.list-compact li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

/* Forms */

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
}

.form-control,
.form-select {
    border-radius: 0.6rem;
    font-size: 0.9rem;
}
