﻿
/* NHÚP FONT CHỮ SANG TRỌNG CỦA GOOGLE */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #4f46e5; /* Tím Indigo hoàng gia sâu hơn */
    --primary-light: #eeebff;
    --sidebar-bg: #0f172a; /* Slate 900 siêu tối sâu thẳm */
    --sidebar-hover: #1e293b;
    --bg-main: #f8fafc; /* Xám trắng cực dịu mắt */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #f1f5f9; /* Đường viền siêu mảnh mảnh */
    --white: #ffffff;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif; /* Áp dụng font chữ mới */
    background-color: var(--bg-main);
    margin: 0;
    padding: 0;
    letter-spacing: -0.2px; /* Tối ưu khoảng cách chữ hiện đại */
}

#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* --- THANH SIDEBAR TỐI GIẢN TẬP TRUNG --- */
#sidebar {
    min-width: 260px;
    max-width: 260px;
    background-color: var(--sidebar-bg);
    color: #94a3b8;
    transition: all 0.3s ease;
    min-height: 100vh;
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.05);
}

.sidebar-header {
    padding: 30px 24px;
    background: #020617; /* Đỉnh đầu sidebar tối hơn tạo khối */
    color: #ffffff;
}

    .sidebar-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

#sidebar ul.components {
    padding: 15px 12px;
    list-style: none;
    margin: 0;
}

#sidebar ul li {
    margin-bottom: 4px;
}

    #sidebar ul li a {
        padding: 12px 16px;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 12px;
        color: #94a3b8;
        text-decoration: none;
        font-weight: 600;
        border-radius: 10px;
        transition: all 0.2s ease;
    }

        #sidebar ul li a:hover {
            color: #ffffff;
            background-color: var(--sidebar-hover);
        }

        #sidebar ul li.active a, #sidebar ul li a:focus {
            color: #ffffff;
            background-color: var(--primary);
        }

/* --- VÙNG NỘI DUNG CHÍNH (MAIN BLOCKS) --- */
#content {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
}

.topbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px); /* Hiệu ứng kính mờ cho topbar */
    border-bottom: 1px solid var(--border-color);
    padding: 16px 32px;
}

.btn-toggle {
    background: #f1f5f9;
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s;
}

    .btn-toggle:hover {
        background: #e2e8f0;
    }

.btn-auth {
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.2s ease;
}

    .btn-auth:hover {
        background: var(--primary-hover);
        transform: translateY(-1px);
    }

/* --- NÂNG CẤP BẢNG PREMIUM TABLE --- */
.table-card {
    background: var(--white);
    padding: 32px;
    border-radius: 20px; /* Bo tròn góc hộp mềm mại hơn */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 10px 30px -10px rgba(0, 0, 0, 0.04); /* Đổ bóng cực mịn */
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
}

    .premium-table th {
        background-color: #f8fafc;
        color: var(--text-muted);
        font-weight: 700;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.8px; /* Chuẩn hóa style header quốc tế */
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .premium-table td {
        padding: 18px 20px;
        border-bottom: 1px solid var(--border-color);
        font-size: 14px;
        color: #334155;
    }

    .premium-table tr:hover td {
        background-color: #fafafa; /* Highlight dòng nhẹ nhàng khi hover */
    }

/* NÚT TẠO MỚI VÀ THAO TÁC TRÊN BẢNG */
.btn-create {
    background-color: var(--primary);
    color: white !important;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-action {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-edit {
    background: var(--primary-light);
    color: var(--primary);
}

    .btn-edit:hover {
        background: #e0e7ff;
    }

.btn-details {
    background: #f1f5f9;
    color: #475569;
}

    .btn-details:hover {
        background: #e2e8f0;
    }

.btn-delete {
    background: #fee2e2;
    color: #ef4444;
}

    .btn-delete:hover {
        background: #fecaca;
    }

/* TAG (PILLS) SẢN PHẨM HOÀN MỸ */
.product-tag {
    font-size: 12px !important;
    color: #334155 !important;
    background: #f8fafc !important;
    padding: 6px 12px !important;
    border-radius: 100px !important; /* Bo dạng capsule tròn xịn */
    font-weight: 600 !important;
    border: 1px solid #e2e8f0 !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* BADGE CHUẨN DOANH NGHIỆP */
.badge {
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
}

.badge-pending {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* MODAL KHÔNG GIAN NỔI */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.3) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 99999 !important;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 24px !important;
    width: 100% !important;
    max-width: 380px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--border-color) !important;
}


