/* ============================================================
   admin.css — Style bổ sung cho giao diện Admin
   Dùng cùng với AdminLTE 3 và Bootstrap 5
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --admin-primary: #3b71ca;
    --admin-accent:  #f4a021;
    --admin-sidebar-bg: #1f3c2a;
    --admin-sidebar-text: rgba(255,255,255,.8);
    --admin-sidebar-active: #3b71ca;
}

body, .content-wrapper {
    font-family: 'Inter', sans-serif;
}

/* ===== Sidebar ===== */
.main-sidebar {
    background: var(--admin-sidebar-bg) !important;
}

.sidebar .nav-link {
    color: var(--admin-sidebar-text) !important;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all .2s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--admin-primary) !important;
    color: white !important;
}

.sidebar .nav-link i {
    color: inherit !important;
}

.brand-link {
    background: rgba(0,0,0,.2) !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
}

.brand-link .brand-text {
    color: white !important;
    font-weight: 700;
}

/* ===== Navbar ===== */
.main-header.navbar {
    background: white !important;
    border-bottom: 1px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
}

/* ===== Stat Cards ===== */
.stat-card {
    border-radius: 12px !important;
    border: none !important;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

.stat-card .inner h3 {
    font-size: 2rem;
    font-weight: 700;
}

/* ===== Bảng data ===== */
.admin-table {
    border-radius: 8px;
    overflow: hidden;
}

.admin-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6c757d;
    border: none;
}

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

.admin-table tbody tr:hover {
    background: #f0f7f3;
}

/* ===== Buttons ===== */
.btn-admin-primary {
    background: var(--admin-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: .4rem 1rem;
    font-size: .88rem;
    font-weight: 500;
    transition: all .2s;
}

.btn-admin-primary:hover {
    background: #285192;
    color: white;
    transform: translateY(-1px);
}

/* ===== Content Header ===== */
.content-header h1 {
    font-weight: 600;
    font-size: 1.5rem;
    color: #2c3e50;
}

/* ===== Cards ===== */
.card {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
    border-radius: 12px !important;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    background: white !important;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0 !important;
}

/* ===== Product Image trong admin table ===== */
.product-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* ===== Status Badges ===== */
.badge-pending   { background: #ffc107; color: #000; }
.badge-confirmed { background: #17a2b8; color: #fff; }
.badge-shipped   { background: #007bff; color: #fff; }
.badge-done      { background: #28a745; color: #fff; }
.badge-cancelled { background: #dc3545; color: #fff; }

/* ===== VIP Tier Badges ===== */
.tier-platinum { background: linear-gradient(135deg,#e5e7eb,#9ca3af); color:#fff; padding:.2rem .6rem; border-radius:12px; font-size:.75rem; font-weight:600; }
.tier-gold     { background: linear-gradient(135deg,#f59e0b,#d97706); color:#fff; padding:.2rem .6rem; border-radius:12px; font-size:.75rem; font-weight:600; }
.tier-silver   { background: linear-gradient(135deg,#6b7280,#4b5563); color:#fff; padding:.2rem .6rem; border-radius:12px; font-size:.75rem; font-weight:600; }
.tier-vip      { background: linear-gradient(135deg,#8b5cf6,#6d28d9); color:#fff; padding:.2rem .6rem; border-radius:12px; font-size:.75rem; font-weight:600; }
.tier-normal   { background: #e9ecef; color:#6c757d; padding:.2rem .6rem; border-radius:12px; font-size:.75rem; font-weight:600; }

/* ===== Modal ===== */
.modal-header {
    background: var(--admin-primary);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* ===== Chart containers ===== */
.chart-container {
    position: relative;
    height: 300px;
}
