:root {
    --color-primary: #2D2F2E;
    --color-secondary: #8C918C;
    --color-white: #FFFFFF;
    --color-accent: #77A9CF;

    --color-background: #f5f6f5;
    --color-border: #e2e5e2;
    --color-text: #2D2F2E;
    --color-muted: #8C918C;
}

.modal{
    --bs-modal-width: 700px !important;
 }
/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--color-text);
}

img.logo {
    width: 200px;
}

/* =========================================================
   LOGIN
   ========================================================= */
.login-page {
    min-height: 100vh;
    background: var(--color-background);
}

.login-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 45% 55%;
}


/* =========================================================
   BRAND PANEL
   ========================================================= */

.login-brand-panel {
    background: var(--color-primary);
    color: var(--color-white);

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;
}


/* subtle decorative circle */
.load-list-h-screen {
    width: 100%;
    height: 650px;
    overflow-x: auto;
    padding: 10px;
}
.login-brand-panel::before {
    content: "";
    position: absolute;

    width: 500px;
    height: 500px;

    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;

    top: -180px;
    right: -180px;
}

.login-brand-panel::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(119,169,207,.12);
    border-radius: 50%;
    bottom: -180px;
    left: -120px;
}


.brand-content {
    width: min(460px, 80%);
    position: relative;
    z-index: 2;
}


.brand-logo {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: 14px;
    font-size: 27px;
    font-weight: 800;
    margin-bottom: 32px;
}

.brand-logo span {
    line-height: 1;
}


.brand-content h1 {
    margin: 0;

    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.brand-subtitle {
    margin-top: 4px;

    color: #c8ccc8;

    font-size: 20px;
}


.brand-divider {
    width: 55px;
    height: 3px;

    background: var(--color-accent);

    margin: 32px 0;
}


.brand-description {
    max-width: 390px;

    color: #b8bcb8;

    font-size: 16px;
    line-height: 1.8;
}


.brand-footer {
    margin-top: 70px;

    color: #9fa49f;

    font-size: 13px;
    letter-spacing: .4px;
}

.brand-footer i {
    color: var(--color-accent);
    margin-right: 8px;
}


/* =========================================================
   FORM PANEL
   ========================================================= */

.login-form-panel {
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
}


.login-form-container {
    width: min(430px, 80%);
}


.login-heading {
    margin-bottom: 38px;
}


.login-eyebrow {
    display: block;

    color: var(--color-accent);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.8px;

    margin-bottom: 10px;
}


.login-heading h2 {
    margin: 0;

    font-size: 36px;
    font-weight: 700;

    letter-spacing: -1px;
}


.login-heading p {
    margin: 10px 0 0;

    color: var(--color-secondary);

    font-size: 15px;
}


/* =========================================================
   FORM
   ========================================================= */

.form-group-custom {
    margin-bottom: 24px;
}


.form-group-custom label {
    display: block;

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 8px;
}


.input-wrapper {
    position: relative;
}


.input-wrapper > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-secondary);
    z-index: 2;
}


.input-wrapper .form-control {
    height: 52px;
    padding-left: 45px;
    padding-right: 45px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    box-shadow: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.input-wrapper .form-control:focus {
    border-color: var(--color-accent);

    box-shadow:
        0 0 0 3px rgba(119, 169, 207, .15);
}


.input-wrapper .form-control::placeholder {
    color: #b3b6b3;
}


/* =========================================================
   PASSWORD
   ========================================================= */

.password-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.password-label label {
    margin-bottom: 8px;
}


.forgot-link {
    color: var(--color-secondary);

    font-size: 12px;

    text-decoration: none;

    transition: color .2s ease;
}


.forgot-link:hover {
    color: var(--color-accent);
}


.password-toggle {
    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: var(--color-secondary);

    padding: 5px;

    cursor: pointer;
}


/* =========================================================
   REMEMBER
   ========================================================= */

.remember-row {
    margin-top: -5px;
    margin-bottom: 25px;
}


.form-check-input {
    border-color: #cfd3cf;

    box-shadow: none;
}


.form-check-input:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}


.form-check-label {
    color: var(--color-secondary);
    font-size: 13px;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.btn-login {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 8px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    position: relative;

    transition:
        background .2s ease,
        transform .2s ease;
}


.btn-login i {
    position: absolute;
    right: 18px;
    transition: transform .2s ease;
}


.btn-login:hover {
    background: #414442;
}


.btn-login:hover i {
    transform: translateX(3px);
}


.btn-login:active {
    transform: translateY(1px);
}
.img-limit-require {
    font-size:12px;
}

/*
 ===========================================================
 ===========================================================
 */
.card-header-quize {
    background: #adadad !important;
    padding: 15px 10px;
}
.quize-primary {
    color: #416145;
    font-weight: 600;
    font-size:20px;
}
.card-item-win {
    background: #f4fff4;
    border: 2px solid #109110;
    border-radius: 10px;
}
/* =========================================================
   FOOTER
   ========================================================= */

.login-bottom {
    margin-top: 45px;

    text-align: center;

    color: #a2a6a2;

    font-size: 11px;
}


/* =========================================================
   ALERT
   ========================================================= */

.login-alert {
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 25px;
}


.category-name {
    font-size:30px;
}

.product-list {
    margin-top: 15px;
    height: 500px;
    overflow-y: scroll;
}

.dashboard-header {
    height: 70px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.dashboard-header .navbar {
    width: 100%;
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.dashboard-logo:hover {
    color: var(--primary);
}

.dashboard-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.dashboard-header .nav-link {
    color: var(--secondary);
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dashboard-header .nav-link:hover {
    color: var(--primary);
    background: #f1f3f1;
}

.dashboard-header .nav-link.active {
    color: var(--white);
    background: var(--primary);
}


/* User section */

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.header-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.header-user-info {
    line-height: 1.2;
}

.header-user-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.header-user-role {
    display: block;
    font-size: 12px;
    color: var(--secondary);
}
a.profile-link {
    background: #f0f0f0;
    padding: 3px 20px;
    text-decoration: none;
    font-size: 11px !important;
    color: #4d6369;
    border-radius: 4px;
    text-align: center;
}
a.profile-link:hover {
    background: #959595;
    color: black;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.dashboard-main {
    padding: 30px;
}

.page-header {
    margin-top: -10px;
    margin-bottom: 20px;
    background-color:#f0f0f0;
    padding:20px;
    border-radius: 10px;
}

.page-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.page-header p {
    margin: 6px 0 0;
    color: var(--secondary);
}


/* =========================================================
   DASHBOARD STAT CARDS
   ========================================================= */

.dashboard-stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 47, 46, 0.08);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.stat-title {
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 9px;
    background: #eef5fa;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-footer {
    margin-top: 12px;
    font-size: 13px;
    color: var(--secondary);
}

.quiz-container {
    padding: 8px;
    height: 450px;
    overflow-y: scroll;
    overflow-x: hidden;
}
.quiz-listing {
    padding:10px;
}

/* =========================================================
   DASHBOARD CONTENT CARDS
   ========================================================= */

.dashboard-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.dashboard-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.dashboard-card-body {
    padding: 22px;
}


/* =========================================================
   TABLE
   ========================================================= */

.dashboard-table {
    margin: 0;
}

.dashboard-table thead th {
    background: #f8f9f8;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
    padding: 13px 15px;
}

.dashboard-table tbody td {
    padding: 15px;
    vertical-align: middle;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-table tbody tr:hover {
    background: #fafbfa;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn-dashboard {
    background: var(--color-primary);
    border: 1px solid var(--color-white);
    color: var(--color-white);
    border-radius: 7px;
    padding: 9px 16px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-dashboard:hover {
    background: #414443;
    border-color: #414443;
    color: var(--color-white);
}

.btn-dashboard-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 7px;
    padding: 8px 15px;
    font-weight: 600;
}

.btn-dashboard-outline:hover {
    background: var(--primary);
    color: var(--white);
}


/* =========================================================
   BADGES
   ========================================================= */

.badge-active {
    background: #e8f4ec;
    color: #39734a;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-inactive {
    background: #f1f1f1;
    color: var(--secondary);
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.quick-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-action:hover {
    color: var(--primary);
    border-color: var(--accent);
    background: #f8fbfd;
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-action-title {
    font-weight: 600;
    font-size: 14px;
}

.quick-action-description {
    font-size: 12px;
    color: var(--secondary);
}

.dashboard-layout {
    min-height: 100vh;
    display: flex;
}
td {
    font-size: 12px;
}
/* ========================================================= SIDEBAR ========================================================= */ 
.sidebar {
    position: relative;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1040;
    background: #dcdcdc;
    color: gray;
}
/* Logo */ 
.sidebar-logo { height: var(--topbar-height); padding: 0 22px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 18px; font-weight: 700; } 
.sidebar-logo-icon { 
    width: 180px; padding: 10px; display: flex; align-items: center; 
    justify-content: center; 
    overflow: hidden; } 
.sidebar-logo-icon .logo { max-width: 100%; max-height: 100%; object-fit: contain; } 
/* Navigation */ 
.sidebar-nav { padding: 20px 14px; display: flex; flex-direction: column; gap: 5px; } 
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #717d75;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sidebar-nav a i { width: 20px; font-size: 17px; text-align: center; }
.sidebar-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); } 
.sidebar-nav a.active {
    color: black;
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(119, 169, 207, 0.18);
}
/* Sidebar bottom */ 
.sidebar-bottom { 
    margin-top: auto; 
    padding: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); 
} .sidebar-bottom a { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 8px; color: rgba(255, 255, 255, 0.68); text-decoration: none; font-size: 14px; transition: all 0.2s ease; } 
.sidebar-bottom a i { width: 20px; text-align: center; font-size: 17px; } 
.sidebar-bottom a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); 
} 
/* ========================================================= MAIN CONTENT ========================================================= */ 
.main-content {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    width: 80%;
}
/* ========================================================= TOPBAR ========================================================= */ 
.topbar { 
    height: var(--topbar-height); 
    background: var(--white); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 30px; position: sticky; top: 0; z-index: 1030; } 
/* Page title */ .topbar-title { flex: 1; } .topbar-title h1 { margin: 0; color: var(--primary); font-size: 22px; font-weight: 700; } 
/* ========================================================= USER MENU ========================================================= */ 
.user-menu { display: flex; align-items: center; gap: 11px; } 
.user-avatar { 
    width: 40px; height: 40px; 
    border-radius: 50%; 
    background: #f0f0f0; 
    color: var(--white); 
    display: flex; align-items: center; 
    justify-content: center; 
    font-size: 15px; 
    font-weight: 700; 
} 
.user-info { display: flex; flex-direction: column; line-height: 1.3; } .user-info strong { color: var(--primary); font-size: 14px; font-weight: 600; } 
.user-info small { color: var(--secondary); font-size: 12px; } 
/* ========================================================= MOBILE MENU BUTTON ========================================================= */ 
.mobile-menu { 
    display: none; width: 40px; height: 40px; margin-right: 15px; border: 0; border-radius: 7px; background: transparent; 
    color: var(--primary); font-size: 22px; align-items: center; justify-content: center; cursor: pointer; } 
.mobile-menu:hover { background: #f1f2f1; } 
/* ========================================================= PAGE CONTENT ========================================================= */ 
.page-content { 
    padding: 1px 30px; 
}

div#editProduct-editModal .modal-dialog.modal-dialog-centered{
    max-width: 800px !important;
}
.the-tab-expansional {
    padding: 20px;
    border: 1px dotted #dcdcdc;
    background: #f6f6f6;
}
/* =========================================================
   RESPONSIVE
   ========================================================= */


@media (max-width: 991px) {

    .dashboard-header {
        height: auto;
        min-height: 65px;
    }

    .header-user-info {
        display: none;
    }

    .dashboard-main {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 24px;
    }
    .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; } 
    .sidebar.open { transform: translateX(0); } 
    .main-content { margin-left: 0; } .mobile-menu { display: flex; } 
    .topbar { padding: 0 20px; } .page-content { padding: 20px; }
}

@media (max-width: 900px) {

    .login-container {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        display: none;
    }

    .mobile-brand {
        display: block;
        margin-bottom: 30px;
    }

    .brand-logo.small {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
        font-size: 21px;
    }

    .login-form-panel {
        min-height: 100vh;
    }

    .login-form-container {
        width: min(430px, 88%);
    }
}

@media (max-width: 576px) {

    .dashboard-main {
        padding: 15px;
    }

    .dashboard-stat-card {
        padding: 18px;
    }

    .stat-value {
        font-size: 26px;
    }

    .dashboard-card-header {
        padding: 15px;
    }

    .dashboard-card-body {
        padding: 15px;
    }
    .topbar { padding: 0 15px; } .topbar-title h1 { font-size: 18px; } 
    .user-info { display: none; } 
    .user-avatar { width: 36px; height: 36px; } 
    .page-content { padding: 15px; }
}

.mobile-brand {
    display: none;
}

@media (max-width: 480px) {

    .login-heading h2 {
        font-size: 30px;
    }

    .login-form-container {
        width: 88%;
    }

}
