/* ======================================================== */
/* ADMIN STYLES CSS - FULL VERSION */
/* ======================================================== */

/* 0. BIẾN VÀ CẤU HÌNH CHUNG */
:root {
    --admin-primary: #009688;
    --admin-primary-dark: #00796b;
    --admin-primary-light: #e0f2f1;
    --admin-secondary: #607d8b;
    --admin-danger: #dc3545;
    --admin-success: #28a745;
    --admin-warning: #ffc107;
    --admin-info: #17a2b8;
    --admin-bg: #f5f7fa;
    --admin-card-bg: #ffffff;
    --admin-border-color: #e3e6f0;
    --admin-text-color: #2c3e50;
    --admin-text-light: #6c757d;
    --admin-text-muted: #95a5a6;
    --admin-sidebar-bg: #2c3e50;
    --admin-sidebar-hover: #34495e;
    --admin-sidebar-active: #1a252f;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--admin-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--admin-text-color);
    line-height: 1.6;
}


/* CSS cho thanh phân trang */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 10px;
    padding: 0;
}

.page-item .page-link {
    display: block;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

/* Trang đang chọn (Active) */
.page-item.active .page-link {
    background-color: #009f7f; /* Màu xanh chủ đạo của bạn */
    color: white;
    border-color: #009f7f;
}

.page-item .page-link:hover {
    background-color: #f0f0f0;
}



/* 1. LAYOUT TỔNG THỂ */
#admin-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* 2. SIDEBAR */
#sidebar {
    width: 260px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    color: #ecf0f1;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

#sidebar::-webkit-scrollbar { width: 6px; }
#sidebar::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
#sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; }
#sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

.sidebar__header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar__header h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.sidebar__nav { list-style: none; padding: 20px 0; flex: 1; }
.nav-item { margin: 5px 0; }
.nav-link {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
    position: relative;
}
.nav-link i { width: 20px; margin-right: 12px; font-size: 16px; }
.nav-link:hover { background: var(--admin-sidebar-hover); color: #fff; padding-left: 30px; }
.nav-link.active {
    background: var(--admin-sidebar-active);
    color: #fff;
    border-left: 4px solid var(--admin-primary);
    padding-left: 26px;
    font-weight: 600;
}
.nav-link.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--admin-primary);
}

.sidebar__footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.btn-logout-sidebar {
    width: 100%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.3);
}
.btn-logout-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}
.btn-logout-sidebar i { font-size: 16px; }

/* 3. CONTENT WRAPPER */
#content-wrapper {
    margin-left: 260px;
    width: calc(100% - 260px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--admin-bg);
    max-width: calc(100vw - 260px);
    overflow-x: hidden;
}

/* 4. HEADER */
#admin-header {
    background: #fff;
    padding: 20px 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    max-width: 100%;
}
.header__left .page-title { font-size: 24px; font-weight: 600; color: var(--admin-text-color); margin: 0; }
.header__right { display: flex; align-items: center; gap: 20px; }
.admin-name { color: var(--admin-text-light); font-size: 15px; font-weight: 500; }
.btn-logout-admin { display: none; }

/* 5. MAIN CONTENT */
.admin-main-content { flex: 1; padding: 30px; width: 100%; overflow-x: hidden; }
.admin-content-padding, .container-fluid { max-width: 100%; width: 100%; padding: 0 !important; margin: 0 !important; }
.admin-content-wrapper { width: 100%; max-width: 100%; }
.admin-content-wrapper > * { width: 100%; max-width: 100%; }
#admin-wrapper .grid, #admin-wrapper .wide, #admin-wrapper .row { margin: 0 !important; width: 100% !important; max-width: 100% !important; }
#admin-wrapper [class*="l-"], #admin-wrapper [class*="m-"], #admin-wrapper [class*="c-"] { padding-left: 0 !important; padding-right: 0 !important; }

/* 6. FOOTER */
#admin-footer {
    background: #fff;
    padding: 20px 30px;
    text-align: center;
    font-size: 13px;
    color: var(--admin-text-muted);
    border-top: 1px solid var(--admin-border-color);
    margin-top: auto;
}

/* 7. LOGIN PAGE */
/* ======================================================== */
/* 7. LOGIN PAGE - STANDALONE */
/* ======================================================== */

/* Body riêng cho trang login */
body:has(.admin-login-container) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #009688 0%, #00796b 100%);
    margin: 0;
}

.admin-login-container {
    width: 100%;
    max-width: 450px;
}

/* Login Form Card */
.login-form {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.login-form__header {
    text-align: center;
    margin-bottom: 30px;
}

.login-form__icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #009688 0%, #00796b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(0, 150, 136, 0.4);
}

.login-form__icon {
    font-size: 36px;
    color: #fff;
}

.login-form__title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.login-form__subtitle {
    font-size: 14px;
    color: #666;
}

/* Form Body */
.login-form__body {
    margin-top: 30px;
}

/* Form Group trong login */
.login-form .form-group {
    margin-bottom: 20px;
}

/* Input Wrapper trong login */
.login-form .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.login-form .input-wrapper:focus-within {
    border-color: #009688;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
}

.login-form .input-wrapper__icon {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}

.login-form .form-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    border-radius: 10px;
}

.login-form .form-input:focus {
    outline: none;
}

.login-form .form-input::placeholder {
    color: #aaa;
}

/* Button trong login */
.login-form .btn {
    width: 100%;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #009688;
    color: #fff;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.login-form .btn:hover {
    background: #00796b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.3);
}

.login-form .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 150, 136, 0.2);
}

.login-form .btn i {
    font-size: 16px;
}

/* Alert trong login */
.login-form .alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.login-form .alert::before {
    content: "\f06a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Responsive cho login */
@media (max-width: 480px) {
    body:has(.admin-login-container) {
        padding: 15px;
    }
    
    .login-form {
        padding: 30px 20px;
    }
    
    .login-form__icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .login-form__icon {
        font-size: 32px;
    }
    
    .login-form__title {
        font-size: 24px;
    }
    
    .login-form .form-input {
        padding: 12px 12px 12px 40px;
        font-size: 14px;
    }
    
    .login-form .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

.form-group { margin-bottom: 25px; }
.input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--admin-border-color);
    border-radius: 10px;
    background: #fff;
    transition: var(--transition);
}
.input-wrapper:focus-within {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
}
.input-wrapper__icon { padding: 0 15px; color: var(--admin-text-muted); font-size: 16px; }
.form-input {
    flex: 1;
    padding: 14px 10px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--admin-text-color);
}
.form-input:focus { outline: none; }
.form-input::placeholder { color: var(--admin-text-muted); }

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn--primary {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.3);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 150, 136, 0.4); }
.btn--block { width: 100%; }

.alert-danger {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success {
    background: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 8. DASHBOARD & STAT CARDS */
.admin-page-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--admin-text-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}
.admin-page-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    border-radius: 2px;
}

.section-sub-heading {
    font-size: 20px;
    font-weight: 600;
    color: var(--admin-text-color);
    margin: 30px 0 20px;
}
.section-sub-heading i { margin-right: 8px; color: var(--admin-primary); }

.admin-stats-row, .admin-category-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 25px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border-left: 4px solid transparent;
    width: 100%;
    max-width: 100%;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-card__icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}
.stat-card__icon { font-size: 24px; }
.stat-card__content { flex: 1; }
.stat-card__title {
    font-size: 13px;
    color: var(--admin-text-light);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.stat-card__value { font-size: 26px; font-weight: 700; color: var(--admin-text-color); }

.stat-card--green { border-left-color: var(--admin-success); }
.stat-card--green .stat-card__icon-wrapper { background: rgba(40, 167, 69, 0.1); }
.stat-card--green .stat-card__icon { color: var(--admin-success); }
.stat-card--blue { border-left-color: #007bff; }
.stat-card--blue .stat-card__icon-wrapper { background: rgba(0, 123, 255, 0.1); }
.stat-card--blue .stat-card__icon { color: #007bff; }
.stat-card--orange { border-left-color: var(--admin-warning); }
.stat-card--orange .stat-card__icon-wrapper { background: rgba(255, 193, 7, 0.1); }
.stat-card--orange .stat-card__icon { color: var(--admin-warning); }
.stat-card--teal { border-left-color: var(--admin-primary); }
.stat-card--teal .stat-card__icon-wrapper { background: rgba(0, 150, 136, 0.1); }
.stat-card--teal .stat-card__icon { color: var(--admin-primary); }
.stat-card--purple { border-left-color: #6f42c1; }
.stat-card--purple .stat-card__icon-wrapper { background: rgba(111, 66, 193, 0.1); }
.stat-card--purple .stat-card__icon { color: #6f42c1; }
.stat-card--red { border-left-color: var(--admin-danger); }
.stat-card--red .stat-card__icon-wrapper { background: rgba(220, 53, 69, 0.1); }
.stat-card--red .stat-card__icon { color: var(--admin-danger); }

/* 9. BẢNG VÀ CÔNG CỤ */
.admin-table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 25px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-wrap: wrap;
}
.filter-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-filter {
    padding: 8px 16px;
    border: 2px solid var(--admin-border-color);
    background: #fff;
    color: var(--admin-text-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.btn-filter:hover { border-color: var(--admin-primary); color: var(--admin-primary); }
.btn-filter.active { background: var(--admin-primary); color: #fff; border-color: var(--admin-primary); }

.search-box { flex: 0 0 auto; }
.search-box input {
    padding: 10px 16px;
    border: 2px solid var(--admin-border-color);
    border-radius: 8px;
    font-size: 14px;
    width: 280px;
    transition: var(--transition);
}
.search-box input:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
}

.order-list-table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0; }
.order-table { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: auto; }
.order-table thead { background: var(--admin-primary-light); }
.order-table thead th {
    padding: 15px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--admin-text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.order-table tbody tr { border-bottom: 1px solid var(--admin-border-color); transition: var(--transition); }
.order-table tbody tr:hover { background: #f8f9fa; }
.order-table tbody td {
    padding: 15px;
    font-size: 15px;
    color: var(--admin-text-color);
    white-space: nowrap;
}
.price-col { font-weight: 600; color: var(--admin-primary); }

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.status-success { background: rgba(40, 167, 69, 0.1); color: var(--admin-success); }
.status-secondary { background: rgba(108, 117, 125, 0.1); color: var(--admin-secondary); }
.status-warning { background: rgba(255, 193, 7, 0.1); color: var(--admin-warning); }
.status-danger { background: rgba(220, 53, 69, 0.1); color: var(--admin-danger); }

.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 6px; white-space: nowrap; }
.btn-success { background: var(--admin-success); color: #fff; }
.btn-success:hover { background: #218838; }
.btn-danger { background: var(--admin-danger); color: #fff; }
.btn-danger:hover { background: #c82333; }
.btn-info { background: var(--admin-info); color: #fff; }
.btn-info:hover { background: #138496; }

.pagination-links { display: flex; justify-content: center; margin-top: 20px; }

/* 10. FORM EDIT USER */
.form-section {
    margin-bottom: 35px;
    padding: 0;
    border-bottom: none;
}
.form-section:last-of-type { margin-bottom: 0; }

/* Section Header với background */
.section-header {
    background: var(--admin-primary-light);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.section-header i {
    font-size: 20px;
    color: var(--admin-primary);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--admin-text-color);
    margin: 0;
}

.form-grid {
    display: grid;
    gap: 20px;
    margin-top: 0;
}

.form-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}

.form-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--admin-text-color);
    margin-bottom: 8px;
    font-size: 14px;
}
.text-danger { color: var(--admin-danger); }

.input-error {
    display: block;
    color: var(--admin-danger);
    font-size: 13px;
    margin-top: 5px;
}
.input-error i { margin-right: 4px; }

.alert-info {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0c5460;
    font-size: 14px;
}
.alert-info i { font-size: 18px; }

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid var(--admin-border-color);
    flex-wrap: wrap;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn--secondary {
    background: var(--admin-secondary);
    color: #fff;
    box-shadow: 0 2px 5px rgba(96, 125, 139, 0.3);
}
.btn--secondary:hover {
    background: #546e7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(96, 125, 139, 0.4);
}

.input-wrapper textarea.form-input {
    min-height: 80px;
    resize: vertical;
    padding: 14px 10px;
    font-family: inherit;
}

.input-wrapper select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-input.is-invalid, .input-wrapper:has(.is-invalid) { border-color: var(--admin-danger); }

/* 11. ORDER DETAIL PAGE */
.page-header-actions {
    margin-bottom: 20px;
}

.order-detail-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 25px;
    margin-top: 20px;
}

.order-detail-main {
    min-width: 0;
}

.order-detail-sidebar {
    min-width: 0;
}

/* Card Headers */
.card-header-custom {
    background: var(--admin-primary-light);
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--admin-primary);
}

.card-header-custom i {
    font-size: 18px;
    color: var(--admin-primary);
}

.card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--admin-text-color);
    margin: 0;
}

.card-header-primary {
    background: linear-gradient(135deg, var(--admin-primary) 0%, var(--admin-primary-dark) 100%);
    border-bottom-color: var(--admin-primary-dark);
}

.card-header-primary i,
.card-header-primary .card-title {
    color: #fff;
}

.card-header-warning {
    background: rgba(255, 193, 7, 0.15);
    border-bottom-color: var(--admin-warning);
}

.card-header-warning i {
    color: var(--admin-warning);
}

.card-body-custom {
    padding: 20px;
}

.card-body-custom.p-0 {
    padding: 0;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item label {
    font-size: 14px;
    font-weight: 600;
    color: var(--admin-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-item label i {
    font-size: 14px;
    color: var(--admin-primary);
}

.info-item span {
    font-size: 15px;
    color: var(--admin-text-color);
    font-weight: 500;
}

/* Status Info */
.status-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--admin-bg);
    border-radius: 8px;
}

.status-item label {
    font-size: 15px;
    font-weight: 600;
    color: var(--admin-text-color);
}

.payment-method {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(0, 150, 136, 0.1);
    color: var(--admin-primary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

/* Order Detail Table */
.order-detail-table tfoot td {
    font-size: 15px;
    border-top: 2px solid var(--admin-border-color);
    padding: 14px 15px;
    background: #f8f9fa;
}

.order-detail-table tfoot .grand-total-row {
    background: var(--admin-primary-light);
    font-weight: bold;
}

.order-detail-table tfoot .grand-total-row td {
    font-size: 17px;
    padding: 16px 15px;
}

.order-detail-table tfoot .grand-total-price {
    color: var(--admin-danger);
    font-size: 20px;
    font-weight: 700;
}

.order-detail-table tfoot .text-right {
    text-align: right;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.action-buttons form {
    width: 100%;
}

/* Utility Classes */
.mb-4 { margin-bottom: 25px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 25px; }

/* Responsive Order Detail */
@media (max-width: 992px) {
    .order-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* 12. PRODUCT MANAGEMENT */
.product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--admin-border-color);
}

/* Image Upload Container */
.image-upload-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Image Upload & Preview - Small Version */
.image-upload-wrapper {
    position: relative;
    margin-top: 10px;
}

.image-preview {
    width: 100%;
    min-height: 200px;
    border: 2px dashed var(--admin-border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--admin-bg);
    transition: var(--transition);
    margin-top: 10px;
}

.image-preview:hover {
    border-color: var(--admin-primary);
    background: var(--admin-primary-light);
}

.image-preview i {
    font-size: 36px;
    color: var(--admin-text-muted);
    margin-bottom: 10px;
}

.image-preview p {
    color: var(--admin-text-light);
    font-size: 13px;
    margin: 0;
    text-align: center;
    padding: 0 10px;
}

.image-preview img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
}

.image-preview-small {
    width: 200px;
    height: 200px;
    border: 2px dashed var(--admin-border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--admin-bg);
    transition: var(--transition);
    flex-shrink: 0;
}

.image-preview-small:hover {
    border-color: var(--admin-primary);
    background: var(--admin-primary-light);
}

.image-preview-small i {
    font-size: 36px;
    color: var(--admin-text-muted);
    margin-bottom: 10px;
}

.image-preview-small p {
    color: var(--admin-text-light);
    font-size: 13px;
    margin: 0;
    text-align: center;
    padding: 0 10px;
}

.image-preview-small img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Current Image Section */
.current-image-section {
    margin-bottom: 20px;
}

.current-image-wrapper {
    display: inline-block;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid var(--admin-border-color);
}

.current-image-wrapper img {
    max-width: 150px;
    max-height: 150px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

/* Form Grid 3 columns */
.form-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

/* Form Check Wrapper */
.form-check-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--admin-bg);
    border-radius: 8px;
    border: 2px solid var(--admin-border-color);
    transition: var(--transition);
}

.form-check-wrapper:hover {
    border-color: var(--admin-primary);
    background: var(--admin-primary-light);
}

.form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
}

.form-check-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--admin-text-color);
    cursor: pointer;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-label i {
    color: var(--admin-warning);
}

/* File Input Styling */
.form-control-file {
    display: block;
    width: 100%;
    padding: 12px;
    border: 2px solid var(--admin-border-color);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.form-control-file:hover {
    border-color: var(--admin-primary);
}

.form-control-file:focus {
    outline: none;
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.1);
}
/* 13. CATEGORY MANAGEMENT */
.category-icon {
    width: 40px;
    height: 40px;
    background: var(--admin-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-primary);
    font-size: 18px;
}

/* Icon Preview Box */
.icon-preview-box {
    margin-top: 20px;
    padding: 20px;
    background: var(--admin-bg);
    border-radius: 8px;
    border: 2px solid var(--admin-border-color);
}

.icon-preview {
    width: 80px;
    height: 80px;
    background: var(--admin-primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.icon-preview i {
    font-size: 36px;
    color: var(--admin-primary);
}

.form-text {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--admin-text-light);
}

.form-text i {
    margin-right: 5px;
    color: var(--admin-info);
}

/* 14. RESPONSIVE */
@media (max-width: 768px) {
    #sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    #sidebar.show { transform: translateX(0); }
    #content-wrapper { margin-left: 0; width: 100%; max-width: 100vw; }
    #admin-header { padding: 15px 20px; }
    .header__left .page-title { font-size: 20px; }
    .admin-main-content { padding: 20px 15px; }
    .admin-stats-row, .admin-category-stats { grid-template-columns: 1fr; }
    .stat-card { min-width: unset; }
    .table-controls { flex-direction: column; align-items: stretch; }
    .search-box input { width: 100%; }
    .order-table { font-size: 13px; }
    .order-table thead { display: none; }
    .order-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid var(--admin-border-color);
        border-radius: 8px;
        padding: 10px;
    }
    .order-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
        max-width: 100%;
        white-space: normal;
    }
    .order-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 10px;
    }
    .form-grid, .form-grid--2col, .form-grid--3col, .form-grid--4col { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}

@media (max-width: 576px) {
    .login-form { padding: 35px 25px; }
    .login-form__title { font-size: 24px; }
}