/* ============================================================
   Vasulal International — Admin Panel CSS
============================================================ */

:root {
  --brand-navy: #354574;
  --brand-dark: #1e2d4f;
  --admin-bg: #f0f2f8;
  --admin-sidebar: #1e2d4f;
}

body.admin-body { background: var(--admin-bg); }
body.admin-login-body { background: linear-gradient(135deg, var(--brand-dark), var(--brand-navy)); }

/* ---- Topbar ---- */
.admin-topbar {
  background: var(--brand-dark);
  height: 56px;
  position: sticky; top: 0; z-index: 1000;
}

/* ---- Sidebar ---- */
.admin-sidebar {
  background: var(--admin-sidebar);
  min-height: calc(100vh - 56px);
  position: sticky; top: 56px; height: calc(100vh - 56px);
  overflow-y: auto;
}
.sidebar-link {
  color: rgba(255,255,255,0.6) !important;
  border-radius: 8px;
  font-size: 0.88rem;
  padding: 10px 14px !important;
  transition: background 0.2s, color 0.2s;
  display: block;
}
.sidebar-link:hover { background: rgba(255,255,255,0.08) !important; color: #fff !important; }
.sidebar-link.active { background: var(--brand-navy) !important; color: #fff !important; font-weight: 600; }

/* ---- Login Card ---- */
.login-card { background: #fff; }
.text-brand { color: var(--brand-navy) !important; }
.btn-brand { background: var(--brand-navy); color: #fff; border: 2px solid var(--brand-navy); font-weight: 600; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

/* ---- Dashboard cards ---- */
.dash-card { color: #fff; }
.dash-card-blue  { background: linear-gradient(135deg, #354574, #4a6fa1); }
.dash-card-green { background: linear-gradient(135deg, #1e7e34, #28a745); }
.dash-card-orange{ background: linear-gradient(135deg, #c96a00, #fd7e14); }
.dash-card-red   { background: linear-gradient(135deg, #a11e1e, #dc3545); }
.dash-number { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.dash-label { font-size: 0.8rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }
.dash-icon { font-size: 2rem; opacity: 0.4; }

/* ---- Admin panel cards ---- */
.admin-panel-card { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* ---- Admin Tables ---- */
.admin-table thead th {
  background: var(--admin-bg);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #666;
  font-weight: 600;
  border-bottom: 2px solid #e4e8f0;
  padding: 12px 16px;
}
.admin-table tbody td { padding: 12px 16px; vertical-align: middle; border-bottom: 1px solid #f0f2f8; }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* ---- Thumbnails ---- */
.thumb-sm { width: 48px; height: 48px; object-fit: cover; }
.thumb-sm-placeholder { width: 48px; height: 48px; }

/* ---- Form controls ---- */
.form-control:focus, .form-select:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 0.2rem rgba(53,69,116,0.15);
}