/* ==========================================================================
   SRI SAMVRIDDHI — ADMIN CONSOLE STYLESHEET
   Professional, premium admin UI extending the brand palette:
   warm ivory canvas, deep maroon, saffron, gold & leaf-green accents.
   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  --bg:            #F6F1E7;   /* warm ivory canvas */
  --bg-soft:       #FFFDF7;
  --bg-deep:       #F0E7D3;
  --maroon:        #7C1F2B;
  --maroon-dark:   #591520;
  --maroon-light:  #8F2F3B;
  --saffron:       #E38B29;
  --saffron-light: #F3B65C;
  --gold:          #B7862E;
  --gold-soft:     #E9C888;
  --leaf:          #4C7A45;
  --leaf-bg:       #E7F0DF;
  --red:           #C0392B;
  --red-bg:        #FCEAE7;
  --ink:           #2C1810;
  --ink-soft:      #7A6A58;
  --ink-faint:     #A3927A;
  --line:          #E7D9BF;
  --white:         #FFFFFF;
  --shadow-sm:     0 2px 8px rgba(90,40,20,0.08);
  --shadow-md:     0 10px 28px rgba(90,40,20,0.12);
  --shadow-lg:     0 22px 50px rgba(90,40,20,0.18);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Mukta', 'Segoe UI', sans-serif;
  --font-utility:  'Poppins', 'Segoe UI', sans-serif;

  --sidebar-w:     252px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
}

a { color: var(--maroon); text-decoration: none; }
a:hover { color: var(--maroon-dark); }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--maroon-dark); line-height: 1.2; }
p  { margin: 0; }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- 3. SIDEBAR ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(175deg, var(--maroon-dark) 0%, #48111B 55%, #3A0D16 100%);
  color: rgba(255,255,255,0.82);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand svg { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text .name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFF7E6;
  line-height: 1.05;
}
.brand-text .role {
  font-family: var(--font-utility);
  font-size: 0.58rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-top: 3px;
}

.sidebar-nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav .nav-label {
  font-family: var(--font-utility);
  font-size: 0.6rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  padding: 14px 10px 6px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.75; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.07); color: #fff; transform: translateX(2px); }
.sidebar-nav a.active {
  background: linear-gradient(90deg, var(--saffron) 0%, var(--saffron-light) 100%);
  color: var(--maroon-dark);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(227,139,41,0.35);
}
.sidebar-nav a.active svg { opacity: 1; }

.sidebar-foot {
  margin-top: auto;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar-foot .user-info { color: rgba(255,255,255,0.85); font-weight: 600; }
.sidebar-foot a { color: rgba(255,255,255,0.6); }
.sidebar-foot a:hover { color: var(--saffron-light); }

/* ---------- 4. MAIN AREA ---------- */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,253,247,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 13px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar .page-title h1 { font-size: 1.5rem; }
.topbar .page-title p { font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--saffron));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-utility);
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}
.topbar-user .u-name { font-size: 0.82rem; font-weight: 600; line-height: 1.1; }
.topbar-user .u-role { font-size: 0.66rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.4px; }

.content { flex: 1; padding: 26px 28px 40px; max-width: 1320px; width: 100%; }

/* ---------- 5. STAT CARDS ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.stat-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card::after {
  content: "";
  position: absolute;
  right: -22px; top: -22px;
  width: 86px; height: 86px;
  border-radius: 50%;
  background: rgba(227,139,41,0.10);
}
.stat-card .stat-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 13px;
}
.stat-card .stat-icon svg { width: 21px; height: 21px; }
.stat-card .stat-icon.maroon { background: rgba(124,31,43,0.12); color: var(--maroon); }
.stat-card .stat-icon.saffron { background: rgba(227,139,41,0.16); color: #c9771d; }
.stat-card .stat-icon.gold { background: rgba(183,134,46,0.15); color: var(--gold); }
.stat-card .stat-icon.leaf { background: rgba(76,122,69,0.14); color: var(--leaf); }
.stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--maroon-dark);
  line-height: 1;
}
.stat-card .stat-label {
  font-family: var(--font-utility);
  font-size: 0.66rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 7px;
}
.stat-card .stat-sub {
  font-size: 0.75rem;
  color: var(--leaf);
  margin-top: 6px;
  font-weight: 600;
}

/* ---------- 6. CARDS / PANELS ---------- */
.panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.panel-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.panel-head h2 { font-size: 1.2rem; }
.panel-head .sub { font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; }
.panel-body { padding: 20px 22px; }
.panel-body.no-pad { padding: 0; }

/* ---------- 7. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-utility);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,31,43,0.25);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 100%); color: #fff; }
.btn-accent {
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-light) 100%);
  color: var(--maroon-dark);
  box-shadow: 0 4px 14px rgba(227,139,41,0.3);
}
.btn-accent:hover { filter: brightness(1.05); color: var(--maroon-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-soft);
}
.btn-outline:hover { border-color: var(--maroon); color: var(--maroon); background: rgba(124,31,43,0.04); }
.btn-danger-outline {
  background: transparent;
  border-color: #E0B4AD;
  color: var(--red);
}
.btn-danger-outline:hover { background: var(--red-bg); border-color: var(--red); }
.btn-sm { padding: 7px 13px; font-size: 0.72rem; border-radius: 6px; }

/* ---------- 8. FORMS ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-family: var(--font-utility);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form-group label .req { color: var(--red); }
.form-control {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  background: #FFFDF8;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(227,139,41,0.16);
}
textarea.form-control { resize: vertical; min-height: 96px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A6A58' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
.form-hint { font-size: 0.72rem; color: var(--ink-faint); }
.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

/* Login-specific form (no sidebar) */
.login-form .form-group { margin-bottom: 16px; }
.login-form .form-check { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--ink-soft); }

/* ---------- 9. ALERTS / FLASH ---------- */
.alert {
  padding: 13px 17px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert-success {
  background: var(--leaf-bg);
  border-color: #C4DDBB;
  color: #35612F;
}
.alert-error {
  background: var(--red-bg);
  border-color: #EFC7C0;
  color: #9C2C1F;
}

/* ---------- 10. TABLES ---------- */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.table th {
  font-family: var(--font-utility);
  font-size: 0.64rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: left;
  padding: 13px 18px;
  border-bottom: 1.5px solid var(--line);
  background: var(--bg);
  white-space: nowrap;
}
.table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--ink);
}
.table tbody tr { transition: background 0.12s ease; }
.table tbody tr:hover { background: rgba(243,228,200,0.35); }
.table tbody tr:last-child td { border-bottom: none; }
.table .num { font-family: var(--font-utility); font-variant-numeric: tabular-nums; }

/* product cell */
.cell-product { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cell-product .thumb {
  width: 46px; height: 46px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-utility);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.cell-product .t-title { font-weight: 600; color: var(--ink); line-height: 1.25; }
.cell-product .t-sku { font-size: 0.7rem; color: var(--ink-faint); font-family: var(--font-utility); margin-top: 2px; }

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-utility);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-active   { background: var(--leaf-bg); color: var(--leaf); }
.badge-inactive { background: #F0EAE0; color: var(--ink-faint); }
.badge-featured { background: rgba(124,31,43,0.1); color: var(--maroon); }
.badge-stock    { background: var(--leaf-bg); color: var(--leaf); }
.badge-limited  { background: rgba(227,139,41,0.15); color: #C9771D; }
.badge-out      { background: var(--red-bg); color: var(--red); }
.badge-discontinued { background: #EFE9E3; color: var(--ink-faint); }

/* row actions */
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.13s ease;
}
.icon-btn:hover { border-color: var(--maroon); color: var(--maroon); background: rgba(124,31,43,0.05); }
.icon-btn.danger:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.icon-btn svg { width: 15px; height: 15px; }

/* ---------- 11. TOOLBAR / FILTERS ---------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.toolbar .search-wrap { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.toolbar .search-wrap svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-faint); pointer-events: none;
}
.toolbar .search-wrap input {
  width: 100%;
  padding: 9px 13px 9px 36px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  font-size: 0.86rem;
  font-family: var(--font-body);
  color: var(--ink);
}
.toolbar .search-wrap input:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(227,139,41,0.14); }
.toolbar select {
  font-family: var(--font-utility);
  font-size: 0.78rem;
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  padding: 9px 32px 9px 13px;
  border-radius: 999px;
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237A6A58' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.toolbar select:focus { outline: none; border-color: var(--saffron); }

.table-foot {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- 12. EMPTY STATE ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}
.empty-state svg { width: 58px; height: 58px; color: var(--gold-soft); margin-bottom: 12px; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 5px; }
.empty-state p { font-size: 0.85rem; }

/* ---------- 13. BREADCRUMB / DETAIL META ---------- */
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--maroon); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- 14. LOGIN PAGE (centered, no sidebar) ---------- */
body.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(227,139,41,0.14), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(124,31,43,0.16), transparent 45%),
    repeating-linear-gradient(45deg, rgba(183,134,46,0.03) 0 1px, transparent 1px 14px),
    var(--bg);
  padding: 24px;
}
.login-shell {
  width: 100%;
  max-width: 420px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 42px 38px 34px;
  position: relative;
  overflow: hidden;
}
.login-shell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--maroon), var(--saffron), var(--gold), var(--saffron), var(--maroon));
  background-size: 200% 100%;
  animation: shimmerBar 6s linear infinite;
}
@keyframes shimmerBar { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.login-brand {
  text-align: center;
  margin-bottom: 26px;
}
.login-brand svg { width: 58px; height: 58px; margin: 0 auto 10px; }
.login-brand .name { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--maroon-dark); }
.login-brand .tagline {
  font-family: var(--font-utility);
  font-size: 0.62rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}
.login-brand .divider {
  display: flex; align-items: center; gap: 10px; justify-content: center; margin: 16px auto 0; max-width: 240px;
}
.login-brand .divider::before,
.login-brand .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--gold-soft)); }
.login-brand .divider::after { background: linear-gradient(to left, transparent, var(--gold-soft)); }
.login-brand .divider span { width: 5px; height: 5px; border-radius: 50%; background: var(--saffron); }
.login-brand .divider span:nth-child(2) { width: 7px; height: 7px; background: var(--maroon); }

.login-title { text-align: center; margin-bottom: 22px; }
.login-title h2 { font-size: 1.45rem; }
.login-title p { font-size: 0.8rem; color: var(--ink-soft); }
.login-form .btn { width: 100%; padding: 13px; font-size: 0.9rem; }
.login-foot { text-align: center; margin-top: 20px; font-size: 0.72rem; color: var(--ink-faint); }
.login-foot .dot { margin: 0 5px; }

/* ---------- 15. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .content { padding: 20px; }
}
@media (max-width: 860px) {
  body { flex-direction: column; }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 14px;
    gap: 6px;
  }
  .sidebar-brand { padding: 6px 4px; border-bottom: none; }
  .sidebar-brand svg { width: 32px; height: 32px; }
  .sidebar-brand .name { font-size: 1.1rem; }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    gap: 4px;
  }
  .sidebar-nav .nav-label, .sidebar-foot { display: none; }
  .sidebar-nav a { padding: 7px 12px; font-size: 0.8rem; }
  .sidebar-nav a svg { width: 15px; height: 15px; }
  .main { margin-left: 0; }
  .topbar { padding: 11px 16px; }
  .topbar .page-title h1 { font-size: 1.2rem; }
  .content { padding: 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }
  .login-shell { padding: 32px 22px 26px; }
  .panel-head, .panel-body { padding-left: 16px; padding-right: 16px; }
}

/* utility */
.text-muted { color: var(--ink-faint); }
.text-sm { font-size: 0.78rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; }
.gap-1 { gap: 8px; } .gap-2 { gap: 14px; }
.d-flex { display: flex; } .align-center { align-items: center; } .justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* ---------- 16. ASSIGN IMAGES (dump folder mapper) ---------- */
.assign-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pending-chip {
  font-family: var(--font-utility);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-light) 100%);
  color: var(--maroon-dark);
  padding: 7px 15px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.assign-row {
  display: grid;
  grid-template-columns: 96px minmax(180px, 1.1fr) minmax(170px, 1fr) minmax(210px, 1.4fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  transition: background 0.12s ease;
}
.assign-row:hover { background: #FFFBF2; }
.assign-row:last-child { border-bottom: none; }
.assign-thumb {
  width: 96px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  box-shadow: var(--shadow-sm);
}
.assign-fname { font-weight: 600; font-size: 0.85rem; color: var(--ink); word-break: break-all; }
.assign-meta { font-size: 0.7rem; color: var(--ink-faint); margin-top: 3px; }
.assign-row .form-control { padding-top: 8px; padding-bottom: 8px; font-size: 0.82rem; }
@media (max-width: 1100px) {
  .assign-row { grid-template-columns: 96px 1fr 1fr; }
  .assign-row > :nth-child(4) { grid-column: 2 / 4; }
  .assign-row > :nth-child(5) { grid-column: 2 / 4; justify-self: start; }
}
@media (max-width: 760px) {
  .assign-row { grid-template-columns: 1fr; }
  .assign-row > :nth-child(2), .assign-row > :nth-child(4), .assign-row > :nth-child(5) { grid-column: auto; justify-self: auto; }
}
