/* ==========================================================================
   CARTOON LOGOX - ADMIN DASHBOARD DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  --admin-brand-red: #B80000;
  --admin-brand-dark-red: #8F0000;
  --admin-brand-yellow: #FBB724;
  --admin-sidebar-bg: #18181B;
  --admin-sidebar-hover: #27272A;
  --admin-sidebar-active: #3F3F46;
  --admin-bg: #F4F5F7;
  --admin-card-bg: #FFFFFF;
  --admin-border: #E4E4E7;
  --admin-text-dark: #18181B;
  --admin-text-muted: #71717A;
  --admin-font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --admin-font-display: 'Lilita One', cursive;
  --admin-radius: 8px;
  --admin-radius-pill: 9999px;
  --admin-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --admin-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.admin-body {
  font-family: var(--admin-font-main);
  background-color: var(--admin-bg);
  color: var(--admin-text-dark);
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
.admin-layout-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background-color: var(--admin-sidebar-bg);
  color: #FAFAFA;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--admin-font-display);
  font-size: 1.25rem;
  letter-spacing: 0.5px;
}

.brand-text-cartoon {
  color: var(--admin-brand-yellow);
}

.brand-text-logox {
  color: var(--admin-brand-red);
}

.brand-badge-admin {
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
  font-family: var(--admin-font-main);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 1px;
}

.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: #FFF;
  font-size: 1.6rem;
  cursor: pointer;
}

.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-grow: 1;
}

.nav-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #71717A;
  letter-spacing: 1px;
  padding: 14px 10px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--admin-radius);
  color: #D4D4D8;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-item:hover {
  background-color: var(--admin-sidebar-hover);
  color: #FFF;
}

.nav-item.active {
  background-color: var(--admin-brand-red);
  color: #FFF;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(184, 0, 0, 0.4);
}

.sidebar-pill-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--admin-radius-pill);
}

.badge-red {
  background-color: #EF4444;
  color: #FFF;
}

.badge-yellow {
  background-color: var(--admin-brand-yellow);
  color: #18181B;
}

/* Main Workspace */
.admin-main-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Top Bar */
.admin-topbar {
  height: 64px;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--admin-text-dark);
}

.topbar-page-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--admin-text-dark);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-icon-link {
  position: relative;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.topbar-icon-link:hover {
  color: var(--admin-brand-red);
}

.topbar-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--admin-brand-red);
  color: #FFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--admin-radius-pill);
}

.topbar-user-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--admin-border);
}

.user-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--admin-brand-yellow);
  color: #18181B;
  font-family: var(--admin-font-display);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.user-info-text {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.user-role-badge {
  font-size: 0.7rem;
  color: var(--admin-text-muted);
}

.user-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.btn-topbar-sm {
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  color: #52525B;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-topbar-sm:hover {
  background: #E4E4E7;
  color: var(--admin-text-dark);
}

.btn-topbar-logout {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #B80000;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-topbar-logout:hover {
  background: #B80000;
  color: #FFF;
}

/* Main Content Area */
.admin-content-area {
  padding: 30px;
  flex-grow: 1;
}

.admin-page-container {
  max-width: 1300px;
  margin: 0 auto;
}

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.admin-main-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--admin-text-dark);
}

.admin-subheading {
  font-size: 0.9rem;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

.breadcrumb-nav {
  margin-bottom: 8px;
}

.breadcrumb-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-brand-red);
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   CARDS & KPI CARDS
   ========================================================================== */
.admin-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--admin-shadow-sm);
  margin-bottom: 25px;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

.card-link-action {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-brand-red);
}

.card-link-action:hover {
  text-decoration: underline;
}

/* KPI Grid */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.kpi-card {
  background: #FFF;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--admin-shadow-sm);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--admin-text-muted);
}

.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-blue { background: #EFF6FF; color: #2563EB; }
.icon-red { background: #FEF2F2; color: #DC2626; }
.icon-green { background: #ECFDF5; color: #059669; }
.icon-yellow { background: #FEFCE8; color: #CA8A04; }

.kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
}

.text-red { color: #DC2626; }
.text-green { color: #059669; }
.text-yellow { color: #CA8A04; }

.kpi-subtext {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   INLINE SVG CHART
   ========================================================================== */
.chart-card {
  padding: 24px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-text-muted);
}

.legend-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--admin-brand-red);
}

.svg-chart-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 10px;
}

.inline-svg-chart {
  width: 100%;
  height: auto;
  min-width: 600px;
  display: block;
}

.chart-dot {
  cursor: pointer;
  transition: r 0.2s ease, stroke-width 0.2s ease;
}

.chart-dot:hover {
  r: 6;
  stroke-width: 3;
}

/* ==========================================================================
   DASHBOARD TABLES & DATA TABLES
   ========================================================================== */
.dashboard-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background-color: #F8F9FA;
  color: var(--admin-text-muted);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #F1F1F4;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background-color: #FAFAFA;
}

.admin-table tbody tr.row-unread {
  background-color: #FFFBEB;
}

.table-bold-link {
  font-weight: 700;
  color: var(--admin-brand-red);
}

.table-bold-link:hover {
  text-decoration: underline;
}

.table-link {
  color: #2563EB;
}

.table-link:hover {
  text-decoration: underline;
}

.cell-main-text {
  font-weight: 600;
}

.cell-sub-text {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
}

.cell-nowrap {
  white-space: nowrap;
}

.table-img-thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--admin-border);
}

/* Status Pills */
.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--admin-radius-pill);
  text-transform: capitalize;
  white-space: nowrap;
}

.status-success { background: #DEF7EC; color: #03543F; }
.status-warning { background: #FEF08A; color: #854D0E; }
.status-pending { background: #FED7AA; color: #9A3412; }
.status-danger { background: #FDE8E8; color: #9B1C1C; }
.status-info { background: #E1EFFE; color: #1E429F; }

/* Table Action Buttons */
.btn-table-edit {
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  color: #18181B;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s;
}

.btn-table-edit:hover {
  background: #E4E4E7;
}

.btn-table-action {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.btn-table-danger {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #DC2626;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-table-danger:hover {
  background: #DC2626;
  color: #FFF;
}

/* Toolbars & Filters */
.admin-toolbar-card {
  background: #FFF;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.admin-filter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-search-wrap {
  flex-grow: 1;
  min-width: 240px;
}

.form-control-sm {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-size: 0.88rem;
  outline: none;
}

.form-control-sm:focus {
  border-color: var(--admin-brand-red);
}

.form-select-sm {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-size: 0.88rem;
  background: #FFF;
  outline: none;
}

/* Pagination */
.admin-pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--admin-border);
}

.pagination-links {
  display: flex;
  gap: 6px;
}

.pagination-link {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--admin-border);
  background: #FFF;
}

.pagination-link:hover {
  background: #F4F4F5;
}

.pagination-link.active {
  background: var(--admin-brand-red);
  color: #FFF;
  border-color: var(--admin-brand-red);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-admin-primary {
  background: var(--admin-brand-red);
  color: #FFF;
  border: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.btn-admin-primary:hover {
  background: var(--admin-brand-dark-red);
}

.btn-admin-secondary {
  background: #E4E4E7;
  color: var(--admin-text-dark);
  border: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-admin-secondary:hover {
  background: #D4D4D8;
}

.btn-admin-light {
  background: #F4F4F5;
  border: 1px solid #E4E4E7;
  color: var(--admin-text-dark);
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.btn-admin-danger {
  background: #DC2626;
  color: #FFF;
  border: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-admin-danger:hover {
  background: #B91C1C;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.75rem;
  border-radius: 4px;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.admin-form-card {
  background: #FFF;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--admin-shadow-sm);
}

.admin-edit-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-text-dark);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-family: var(--admin-font-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--admin-brand-red);
  box-shadow: 0 0 0 3px rgba(184, 0, 0, 0.12);
}

.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  font-family: var(--admin-font-main);
  font-size: 0.9rem;
  background-color: #FFF;
  outline: none;
}

.form-row-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-check-group {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
}

.form-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

/* Image Uploader with Preview */
.image-uploader-preview-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

.preview-img-box {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow-sm);
}

/* Settings Tabs */
.settings-tabs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.settings-tab-btn {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: #FFF;
  border: 1px solid var(--admin-border);
  color: var(--admin-text-dark);
}

.settings-tab-btn.active {
  background: var(--admin-brand-red);
  color: #FFF;
  border-color: var(--admin-brand-red);
}

/* Order Detail Grid */
.order-detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
}

.info-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 25px;
}

.info-label {
  display: block;
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.info-value {
  font-size: 0.95rem;
}

.order-notes-box {
  background: #F8F9FA;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 16px;
}

.notes-heading {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--admin-text-dark);
}

.notes-content {
  font-size: 0.88rem;
  line-height: 1.6;
}

.order-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.order-file-item {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.order-file-preview-wrap {
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 10px;
  background: #000;
}

.order-file-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-file-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.order-file-meta {
  font-size: 0.72rem;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   TOAST NOTICES & MODALS
   ========================================================================== */
.admin-toast-container {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.admin-toast {
  padding: 14px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateY(-15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.toast-success {
  background-color: #DEF7EC;
  color: #03543F;
  border: 1px solid #BCF0DA;
}

.toast-error {
  background-color: #FDE8E8;
  color: #9B1C1C;
  border: 1px solid #FBD5D5;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
  color: inherit;
}

/* Modal */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.admin-modal-dialog {
  position: relative;
  z-index: 10001;
  background: #FFF;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--admin-shadow-md);
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--admin-text-dark);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--admin-text-muted);
}

.admin-modal-body p {
  font-size: 0.9rem;
  color: #52525B;
  line-height: 1.6;
}

.admin-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   AUTH PAGES (LOGIN / FORGOT / RESET)
   ========================================================================== */
body.admin-auth-body {
  background-color: #18181B;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--admin-font-main);
}

.auth-card-wrapper {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.auth-brand-header {
  text-align: center;
  margin-bottom: 25px;
}

.auth-logo-img {
  margin-bottom: 12px;
}

.auth-title {
  font-family: var(--admin-font-display);
  font-size: 1.6rem;
  color: var(--admin-text-dark);
  letter-spacing: 0.5px;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  margin-top: 4px;
}

.auth-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.alert-success {
  background: #DEF7EC;
  color: #03543F;
}

.alert-danger {
  background: #FDE8E8;
  color: #9B1C1C;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-link-sm {
  font-size: 0.78rem;
  color: var(--admin-brand-red);
  font-weight: 600;
}

.auth-link-sm:hover {
  text-decoration: underline;
}

.btn-auth-submit {
  width: 100%;
  background: var(--admin-brand-red);
  color: #FFF;
  border: none;
  font-family: var(--admin-font-display);
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-auth-submit:hover {
  background: var(--admin-brand-dark-red);
}

.auth-footer-text {
  text-align: center;
  margin-top: 25px;
  font-size: 0.82rem;
  color: var(--admin-text-muted);
}

.auth-footer-text a {
  color: var(--admin-text-muted);
}

.auth-footer-text a:hover {
  color: var(--admin-brand-red);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .kpi-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-tables-grid {
    grid-template-columns: 1fr;
  }
  .order-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: none;
  }

  .admin-sidebar-overlay.open {
    display: block;
  }

  .sidebar-close-btn {
    display: block;
  }

  .topbar-hamburger-btn {
    display: block;
  }

  .admin-content-area {
    padding: 20px 15px;
  }

  .kpi-cards-grid {
    grid-template-columns: 1fr;
  }

  .form-row-two-col {
    grid-template-columns: 1fr;
  }
}
