
*, *::before, *::after {
    box-sizing: border-box;
}
:root{
  --td-navy:#1b2340;
  --td-navy-light:#242d52;
  --td-purple:#6a5cf5;
  --td-purple-dark:#5646e0;
  --td-orange:#ffb648;
  --td-teal:#17c3c3;
  --td-green:#22c55e;
  --td-red:#ef4444;
  --td-yellow:#f5b942;
  --td-bg:#f4f6fb;
  --td-card-radius:14px;
}
body{
  background:var(--td-bg);
  font-family:'Segoe UI',system-ui,-apple-system,Roboto,Arial,sans-serif;
  color:#1f2544;
}
a{ text-decoration:none; }

/* ---------- Sidebar ---------- */
.td-sidebar{
  width:250px;
  min-height:100vh;
  background:var(--td-navy);
  color:#c9cfe8;
  position:fixed; top:0; left:0; bottom:0;
  z-index:1030;
  transition:margin-left .25s ease;
  overflow-y:auto;
}
.td-sidebar.collapsed{ margin-left:-250px; }
.td-sidebar .brand{
  display:flex; align-items:center; gap:10px;
  padding:22px 20px; color:#fff; font-weight:700; font-size:1.05rem;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.td-sidebar .brand .logo-badge{
  width:36px;height:36px;border-radius:10px;
  background:linear-gradient(135deg,var(--td-orange),var(--td-purple));
  display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;
}
.td-sidebar .nav-section-title{
  text-transform:uppercase; font-size:.7rem; letter-spacing:.08em;
  color:#7b84ab; padding:18px 20px 8px;
}
.td-sidebar .nav-link{
  color:#c9cfe8; padding:11px 20px; display:flex; align-items:center; gap:12px;
  font-size:.92rem; border-left:3px solid transparent; border-radius:0;
}
.td-sidebar .nav-link:hover{ background:rgba(255,255,255,.06); color:#fff; }
.td-sidebar .nav-link.active{
  background:rgba(106,92,245,.18); color:#fff; border-left:3px solid var(--td-purple);
  font-weight:600;
}
.td-sidebar .nav-link i{ width:18px; text-align:center; }

/* ---------- Topbar ---------- */
.td-topbar{
  margin-left:250px;
  background:#fff;
  padding:14px 26px;
  display:flex; align-items:center; justify-content:space-between;
  box-shadow:0 1px 3px rgba(20,20,50,.06);
  position:sticky; top:0; z-index:1020;
}
.td-content{ margin-left:250px; padding:26px; min-height:calc(100vh - 66px); }
@media (max-width: 991px){
  .td-sidebar{ margin-left:-250px; }
  .td-sidebar.show{ margin-left:0; }
  .td-topbar, .td-content{ margin-left:0; }
}

/* ---------- Cards ---------- */
.stat-card{
  border:none; border-radius:var(--td-card-radius);
  padding:22px; height:100%;
  box-shadow:0 2px 10px rgba(20,20,60,.05);
}
.stat-card .icon-wrap{
  width:46px;height:46px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.1rem;
  margin-bottom:14px;
}
.stat-card .stat-value{ font-size:1.7rem; font-weight:700; }
.stat-card .stat-label{ color:#6b7280; font-size:.85rem; }
.bg-soft-purple{ background:#eeecfe; } .icon-purple{ background:var(--td-purple); }
.bg-soft-orange{ background:#fff3e0; } .icon-orange{ background:var(--td-orange); }
.bg-soft-teal{ background:#e3fbfb; } .icon-teal{ background:var(--td-teal); }
.bg-soft-green{ background:#e8fbef; } .icon-green{ background:var(--td-green); }
.bg-soft-red{ background:#fdecec; } .icon-red{ background:var(--td-red); }
.bg-soft-yellow{ background:#fef7e6; } .icon-yellow{ background:var(--td-yellow); }

.card{ border:none; border-radius:var(--td-card-radius); box-shadow:0 2px 10px rgba(20,20,60,.05); }
.card-header-td{ background:#fff; border-bottom:1px solid #eef0f7; font-weight:600; padding:16px 20px; border-radius:var(--td-card-radius) var(--td-card-radius) 0 0; }

.btn-td-primary{ background:var(--td-purple); border-color:var(--td-purple); color:#fff; }
.btn-td-primary:hover{ background:var(--td-purple-dark); border-color:var(--td-purple-dark); color:#fff; }
.btn-td-warning{ background:var(--td-orange); border-color:var(--td-orange); color:#20242f; font-weight:600; }
.btn-td-warning:hover{ background:#f0a835; color:#20242f; }

.table thead th{ color:#6b7280; font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; border-bottom:1px solid #eef0f7; }
.table td{ vertical-align:middle; font-size:.9rem; }

.badge{ font-weight:500; padding:.4em .7em; }


/*=============================
      AUTH LOGIN PAGE
==============================*/

.auth-wrap{
    display:flex;
    min-height:100vh;
}

/* LEFT SIDE */
.auth-left{
    width:65%;
    background:linear-gradient(135deg,#0d1b4c,#1e5eff);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:#fff;
    position:relative;
    padding:60px 40px;
}

.auth-brand{
    position:absolute;
    top:30px;
    left:40px;
    display:flex;
    align-items:center;
    gap:10px;
    font-size:24px;
    font-weight:600;
}
.auth-brand img{ width:50px; }

.left-logo{
    width:200px;
    max-width:60%;
    height:auto;
    margin-bottom:24px;
}

.auth-left h1{
    font-size:40px;
    font-weight:700;
    margin-bottom:16px;
}
.auth-left p{
    max-width:520px;
    font-size:18px;
    line-height:30px;
    opacity:.9;
}

/* RIGHT SIDE */
.auth-right{
    width:35%;
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px;
}

.login-box{
    width:100%;
    max-width:360px;
}
.login-box h2{
    font-size:32px;
    color:#16356f;
    text-align:center;
    margin-bottom:30px;
    font-weight:700;
}

.auth-right label{
    font-weight:600;
    margin-bottom:8px;
    color:#555;
    display:block;
}
.auth-right .form-control{
    height:50px;
    border-radius:10px;
    border:1px solid #d5d9e5;
    padding:12px 15px;
    box-shadow:none;
}
.auth-right .form-control:focus{
    border-color:#1e5eff;
    box-shadow:0 0 0 .15rem rgba(30,94,255,.15);
}

/* scoped to the login button only — does NOT touch .btn-td-primary used elsewhere */
.login-box .btn-login{
    width:100%;
    height:50px;
    border-radius:10px;
    font-size:17px;
    font-weight:600;
    background:#1e5eff;
    border:none;
    color:#fff;
}
.login-box .btn-login:hover{ background:#0d4ce8; color:#fff; }

/* Mobile */
@media(max-width:991px){
    .auth-wrap{ flex-direction:column; }
    .auth-left{ width:100%; padding:30px; }
    .auth-right{ width:100%; }
    .left-logo{ width:140px; }
    .auth-left h1{ font-size:28px; }
    .auth-left p{ font-size:15px; line-height:26px; }
    .auth-brand{ position:static; margin-bottom:20px; justify-content:center; }
}


.pagination-info{ font-size:.85rem; color:#6b7280; }
.dz-upload-btn{ background:var(--td-purple); color:#fff; border:none; border-radius:8px; padding:9px 16px; font-size:.85rem; }
.dz-upload-btn.uploaded{ background:var(--td-green); }
.thumb-preview{ width:100%; max-width:220px; border-radius:10px; border:1px solid #eef0f7; margin-top:8px; }
