:root {
    --sidebar-w: 260px;
    --sidebar-bg: #1f0300;
    --sidebar-text: #e8d8c8;
    --sidebar-text-active: #fff;
    --sidebar-active-bg: #3a1a14;
    --primary: #c8a27a;
    --topbar-h: 64px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }
body.admin-body { background: #f4f4f7; font-family: 'Inter', system-ui, -apple-system, sans-serif; font-size: 14px; }

.admin-wrapper { display: flex; min-height: 100vh; }

/* SIDEBAR */
.admin-sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1030;
    overflow-y: auto;
    transition: transform 0.25s ease;
}
.admin-sidebar .brand {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
}
.admin-sidebar .brand .logo-mark {
    width: 32px; height: 32px;
    background: var(--primary);
    border-radius: 8px;
    display: grid; place-items: center;
    color: var(--sidebar-bg);
    font-weight: 800;
}
.sidebar-menu { list-style: none; padding: 12px 0; margin: 0; }
.sidebar-menu .menu-section {
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    letter-spacing: 1px;
    padding: 14px 24px 6px;
}
.sidebar-menu li > a, .sidebar-menu li > .submenu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
}
.sidebar-menu li > a i, .sidebar-menu li > .submenu-toggle i { width: 18px; text-align: center; font-size: 16px; }
.sidebar-menu li > a:hover, .sidebar-menu li > a.active, .sidebar-menu li > .submenu-toggle:hover {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-text-active);
    border-left: 3px solid var(--primary);
    padding-left: 21px;
}
.sidebar-menu .submenu { list-style: none; padding-left: 28px; max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.sidebar-menu .submenu.open { max-height: 600px; }
.sidebar-menu .submenu li a { padding: 8px 16px; font-size: 13px; }
.submenu-toggle .chev { margin-left: auto; transition: transform 0.2s; }
.submenu-toggle.open .chev { transform: rotate(90deg); }

/* CONTENT */
.admin-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin 0.25s ease;
}
.topbar {
    height: var(--topbar-h);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.topbar .toggle-sidebar { background: transparent; border: 0; font-size: 22px; color: #555; }
.topbar .page-title { font-weight: 600; font-size: 18px; margin: 0; }
.topbar .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.user-dropdown img, .user-dropdown .avatar {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover;
    background: var(--primary); color: #fff;
    display: grid; place-items: center;
    font-weight: 700;
}

.content-area { flex: 1; }

/* CARDS */
.stat-card {
    border: 0; border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.stat-card .card-body { padding: 22px; }
.stat-card .icon-box { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; line-height: 1.2; margin: 6px 0 2px; }
.stat-card .stat-label { color: #888; font-size: 13px; }

.bg-soft-primary { background: rgba(13, 110, 253, 0.12); color: #0d6efd; }
.bg-soft-success { background: rgba(25, 135, 84, 0.12); color: #198754; }
.bg-soft-warning { background: rgba(255, 193, 7, 0.15); color: #b58900; }
.bg-soft-danger  { background: rgba(220, 53, 69, 0.12); color: #dc3545; }
.bg-soft-info    { background: rgba(13, 202, 240, 0.12); color: #0dcaf0; }
.bg-soft-purple  { background: rgba(111, 66, 193, 0.12); color: #6f42c1; }

.page-card { border:0; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.page-card .card-header { background: #fff; border-bottom: 1px solid #eee; padding: 16px 20px; font-weight: 600; }

/* TABLES */
table.dataTable thead th { background: #fafafa; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: #555; }
.dataTables_wrapper .dt-buttons .btn { margin-right: 4px; }

/* AUTH */
.auth-page { min-height: 100vh; display: flex; }
.auth-marketing {
    flex: 1;
    background: linear-gradient(135deg, #1f0300 0%, #3a1a14 50%, #5c2d22 100%);
    color: #fff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-marketing::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(200,162,122,0.25) 0%, transparent 70%);
    border-radius: 50%;
}
.auth-marketing-content { position: relative; z-index: 1; }
.auth-marketing h1 { font-size: 38px; font-weight: 700; line-height: 1.2; }
.auth-marketing .features { margin-top: 30px; }
.auth-marketing .features li {
    list-style: none;
    margin-bottom: 18px;
    padding-left: 36px;
    position: relative;
    font-size: 15px;
}
.auth-marketing .features li::before {
    content: '\2714';
    position: absolute; left: 0; top: -2px;
    width: 24px; height: 24px;
    background: var(--primary);
    color: var(--sidebar-bg);
    border-radius: 50%;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 12px;
}
.auth-marketing .stats { margin-top: 40px; display: flex; gap: 36px; flex-wrap: wrap; }
.auth-marketing .stats .stat .v { font-size: 28px; font-weight: 700; }
.auth-marketing .stats .stat .l { font-size: 13px; opacity: 0.7; }

.auth-form {
    width: 700px;
    max-width: 100%;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}
.auth-form .auth-brand { font-size: 22px; font-weight: 700; letter-spacing: 2px; color: var(--sidebar-bg); margin-bottom: 8px; }
.auth-form h2 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.auth-form .form-label { font-weight: 500; font-size: 13px; color: #555; }
.auth-form .form-control, .auth-form .form-select { padding: 12px 14px; border-radius: 8px; }
.auth-form .btn-submit {
    background: var(--sidebar-bg); color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    border: 0;
    width: 100%;
    transition: 0.2s;
}
.auth-form .btn-submit:hover { background: var(--primary); color: var(--sidebar-bg); }

@media (max-width: 991.98px) {
    .auth-marketing { display: none; }
    .auth-form { width: 100%; padding: 40px 24px; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; }
}



@media (max-width: 767px) {
     
  .auth-form .auth-brand {
      font-size: 20px; 
      margin-bottom: 0;
  }
  .auth-form h2 {
      font-size: 18px;
      font-weight: 500;
      margin-bottom: 8px;
  }
  .form-check.mb-4 label.form-check-label {
      font-size: 14px;
  }
  
}

