/* ============================================================
   EatKriuk WMS Mini - Stylesheet
   Tema: sidebar navy gelap #1a2035, aksen kuning/gold #F5A623
   ============================================================ */

:root {
    --ek-navy: #1a2035;
    --ek-navy-light: #242b45;
    --ek-gold: #F5A623;
    --ek-bg: #f4f6f9;
    --sidebar-width: 240px;
}

body {
    background-color: var(--ek-bg);
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--ek-navy);
    color: #fff;
    z-index: 1040;
    overflow-y: auto;
    transition: transform .25s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: var(--ek-gold);
    color: var(--ek-navy);
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-brand .brand-title {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.1;
    color: #fff;
}

.sidebar-brand .brand-subtitle {
    font-size: .75rem;
    color: var(--ek-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, .72);
    padding: 11px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .93rem;
    border-left: 3px solid transparent;
}

.sidebar .nav-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: var(--ek-navy-light);
}

.sidebar .nav-link.active {
    color: var(--ek-gold);
    background-color: var(--ek-navy-light);
    border-left-color: var(--ek-gold);
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px 20px;
    font-size: .75rem;
    color: rgba(255, 255, 255, .4);
}

/* ---------- Konten ---------- */
.content {
    margin-left: var(--sidebar-width);
    padding: 24px;
    min-height: 100vh;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.topbar h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ek-navy);
    margin: 0;
}

.topbar .topbar-date {
    color: #6c757d;
    font-size: .85rem;
}

/* ---------- Kartu statistik ---------- */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(26, 32, 53, .08);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background-color: rgba(245, 166, 35, .15);
    color: var(--ek-gold);
}

.stat-card .stat-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #8a92a6;
    margin-bottom: 2px;
}

.stat-card .stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ek-navy);
}

/* ---------- Kartu umum ---------- */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(26, 32, 53, .08);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #eef0f4;
    font-weight: 600;
    color: var(--ek-navy);
    border-radius: 12px 12px 0 0 !important;
}

/* ---------- Tombol aksen gold ---------- */
.btn-gold {
    background-color: var(--ek-gold);
    border-color: var(--ek-gold);
    color: var(--ek-navy);
    font-weight: 600;
}

.btn-gold:hover,
.btn-gold:focus {
    background-color: #d9931a;
    border-color: #d9931a;
    color: var(--ek-navy);
}

/* ---------- Badge channel ---------- */
.badge-channel-shopee   { background-color: #ee4d2d; color: #fff; }
.badge-channel-tiktok   { background-color: #121212; color: #fff; }
.badge-channel-whatsapp { background-color: #25d366; color: #fff; }
.badge-channel-b2b      { background-color: #0d6efd; color: #fff; }
.badge-channel-offline  { background-color: #6c757d; color: #fff; }

/* ---------- Tabel ---------- */
.table thead th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #8a92a6;
    border-bottom-width: 1px;
    white-space: nowrap;
}

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

/* ---------- Toggle sidebar (tablet/mobile) ---------- */
.btn-sidebar-toggle {
    display: none;
}

@media (max-width: 767.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0, 0, 0, .3);
    }

    .content {
        margin-left: 0;
        padding: 16px;
    }

    .btn-sidebar-toggle {
        display: inline-flex;
    }
}
