:root {
    --brand-red: #c61f26;
    --brand-red-dark: #a3151c;
    --brand-black: #111111;
    --brand-charcoal: #1b1b1b;
    --brand-gray-100: #f5f6f8;
    --brand-gray-200: #ebedf0;
    --brand-gray-300: #d7dbe0;
    --brand-gray-500: #6b7280;
    --brand-white: #ffffff;
    --brand-success-bg: #dcfce7;
    --brand-success-text: #166534;
    --brand-warning-bg: #fef3c7;
    --brand-warning-text: #92400e;
    --brand-info-bg: #dbeafe;
    --brand-info-text: #1d4ed8;
    --brand-indigo-bg: #e0e7ff;
    --brand-indigo-text: #4338ca;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--brand-gray-100);
    color: var(--brand-black);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

a {
    text-decoration: none;
}

.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #111111 0%, #1a1a1a 100%);
    padding: 20px 16px;
    overflow-y: auto;
    border-right: 3px solid var(--brand-red);
}

.brand-wrap {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-logo {
    max-width: 180px;
    height: auto;
}

.nav-section-title {
    color: #9ca3af;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 18px 10px 10px;
}

.sidebar a {
    display: block;
    color: #d1d5db;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(198, 31, 38, 0.14);
    color: #ffffff;
    border-left: 4px solid var(--brand-red);
    padding-left: 10px;
}

.main-content {
    margin-left: 250px;
    padding: 24px;
    min-height: 100vh;
}

.topbar {
    background: var(--brand-white);
    border-radius: var(--radius);
    padding: 16px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 4px solid var(--brand-red);
}

.topbar-left strong {
    font-size: 18px;
    color: var(--brand-black);
}

.topbar-right {
    font-weight: 600;
    color: var(--brand-gray-500);
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 22px;
    color: var(--brand-black);
}

.card-box {
    background: var(--brand-white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-soft);
    border-left: 5px solid var(--brand-red);
    height: 100%;
}

.card-box h5 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--brand-gray-500);
    font-weight: 700;
}

.card-box h2 {
    margin: 0;
    font-size: 32px;
    color: var(--brand-black);
    font-weight: 800;
}

.content-card {
    background: var(--brand-white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.btn-primary-custom {
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-block;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-primary-custom:hover {
    background: var(--brand-red-dark);
    color: #fff;
}

.btn-dark-custom {
    background: var(--brand-black);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    display: inline-block;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-dark-custom:hover {
    background: #000;
    color: #fff;
}

.table-wrap {
    background: var(--brand-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: #191919;
    color: #fff;
    border: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 14px;
    vertical-align: middle;
}

.table tbody td {
    padding: 14px;
    vertical-align: middle;
    border-color: var(--brand-gray-200);
}

.table tbody tr:hover {
    background: #fcfcfd;
}

.form-control,
.form-select {
    border-radius: 10px;
    min-height: 44px;
    border: 1px solid var(--brand-gray-300);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 0.18rem rgba(198, 31, 38, 0.15);
}

label {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--brand-black);
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.status-pending {
    background: var(--brand-warning-bg);
    color: var(--brand-warning-text);
}

.status-processing {
    background: var(--brand-info-bg);
    color: var(--brand-info-text);
}

.status-shipped {
    background: var(--brand-indigo-bg);
    color: var(--brand-indigo-text);
}

.status-delivered {
    background: var(--brand-success-bg);
    color: var(--brand-success-text);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        linear-gradient(rgba(17,17,17,0.70), rgba(17,17,17,0.70)),
        linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.login-box {
    width: 100%;
    max-width: 430px;
    background: var(--brand-white);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    border-top: 5px solid var(--brand-red);
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    max-width: 190px;
    height: auto;
}

.login-box h3 {
    font-weight: 800;
    color: var(--brand-black);
}

.alert {
    border-radius: 10px;
}

.filter-bar {
    background: var(--brand-white);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    margin-bottom: 18px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--brand-black);
}

.empty-state {
    padding: 30px;
    text-align: center;
    color: var(--brand-gray-500);
}

@media (max-width: 991px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
    }

    .main-content {
        margin-left: 0;
        padding: 18px;
    }

    .topbar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}