/* ==========================================================================
   OFFICIAL DATADESK - DATA COLLECTOR & MANAGEMENT PANEL
   Branding: Royal Crimson Red (#B81D24) & Sunburst Gold (#D4AF37)
   ========================================================================== */

:root {
  /* Brand Identity Colors */
  --brand-red: #b81d24;
  --brand-red-dark: #8b0000;
  --brand-red-light: #fef2f2;
  --brand-red-glow: rgba(184, 29, 36, 0.18);
  
  --brand-gold: #c49a45;
  --brand-gold-dark: #9f792b;
  --brand-gold-light: #fdfaf0;
  --brand-gold-glow: rgba(196, 154, 69, 0.2);

  /* Light Theme Defaults */
  --bg-app: #f4f6f9;
  --bg-card: #ffffff;
  --bg-card-alt: #f8fafc;
  --bg-hover: #f1f5f9;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --border-color-light: #f1f5f9;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
  --shadow-red: 0 4px 16px rgba(184, 29, 36, 0.25);

  /* Status Colors */
  --status-verified-bg: #ecfdf5;
  --status-verified-text: #059669;
  --status-pending-bg: #fffbeb;
  --status-pending-text: #d97706;
  --status-followup-bg: #eff6ff;
  --status-followup-text: #2563eb;
  --status-completed-bg: #f5f3ff;
  --status-completed-text: #7c3aed;
  --status-rejected-bg: #fef2f2;
  --status-rejected-text: #dc2626;

  /* Fonts & Radius */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-app: #0f172a;
  --bg-card: #1e293b;
  --bg-card-alt: #162032;
  --bg-hover: #273549;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --border-color: #334155;
  --border-color-light: #1e293b;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 14px 32px rgba(0, 0, 0, 0.55);
  
  --brand-red-light: rgba(184, 29, 36, 0.15);
  --brand-gold-light: rgba(196, 154, 69, 0.15);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.75rem;
  background-color: var(--bg-card);
  border-bottom: 2px solid var(--brand-red);
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1.5px solid var(--brand-gold);
  background: #ffffff;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 70%, var(--brand-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.collector-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--brand-red-light);
  color: var(--brand-red);
  border: 1px solid rgba(184, 29, 36, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-gold-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--brand-gold-glow);
}

.btn-gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-dark-gold {
  background: #2d3748;
  color: var(--brand-gold);
  border: 1px solid var(--brand-gold);
}

.btn-dark-gold:hover {
  background: #1a202c;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
}

.btn-outline {
  background: transparent;
  color: var(--brand-red);
  border: 1.5px solid var(--brand-red);
}

.btn-outline:hover {
  background: var(--brand-red-light);
}

.btn-outline-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-outline-sm:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.btn-success {
  background: #10b981;
  color: #ffffff;
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--brand-red);
  border-color: var(--brand-red);
  background: var(--bg-hover);
}

.icon-btn-sm {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

/* ==========================================================================
   MAIN LAYOUT & STAT CARDS
   ========================================================================== */
.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}

.card-total::before { background: var(--brand-red); }
.card-today::before { background: var(--brand-gold); }
.card-verified::before { background: #10b981; }
.card-pending::before { background: #f59e0b; }

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.card-total .metric-icon { background: var(--brand-red-light); color: var(--brand-red); }
.card-today .metric-icon { background: var(--brand-gold-light); color: var(--brand-gold-dark); }
.card-verified .metric-icon { background: var(--status-verified-bg); color: var(--status-verified-text); }
.card-pending .metric-icon { background: var(--status-pending-bg); color: var(--status-pending-text); }

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* Banner Strip */
.banner-strip {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--border-color);
  border-left: 6px solid var(--brand-red);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.banner-trend-icon {
  font-size: 1.8rem;
  color: var(--brand-red);
  background: var(--brand-red-light);
  padding: 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(184, 29, 36, 0.2);
}

.banner-left strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-main);
}

.banner-left p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   SPLIT GRID: FORM & TABLE
   ========================================================================== */
.content-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.5rem;
  align-items: start;
  transition: all 0.3s ease;
}

.content-grid.form-collapsed {
  grid-template-columns: 1fr;
}

.content-grid.form-collapsed .form-section {
  display: none;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

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

/* ==========================================================================
   COLLECTOR FORM
   ========================================================================== */
.collector-form {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.85rem;
}

.two-cols {
  grid-template-columns: 1fr 1fr;
}

.three-cols {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-group label i {
  color: var(--brand-red);
  font-size: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-main);
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-glow);
}

.form-group textarea {
  resize: vertical;
}

.field-hint {
  font-size: 0.72rem;
  color: #ef4444;
  min-height: 14px;
}

.custom-fields-area {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

/* ==========================================================================
   DATA TABLE & MANAGEMENT
   ========================================================================== */
.table-section {
  display: flex;
  flex-direction: column;
  min-height: 600px;
}

.table-toolbar {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
  max-width: 400px;
}

.search-box i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.85rem;
}

.search-box input {
  width: 100%;
  padding: 0.55rem 2rem 0.55rem 2.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-app);
  color: var(--text-main);
  font-size: 0.85rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--brand-red);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--brand-red-glow);
}

.clear-search-btn {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.82rem;
  cursor: pointer;
}

/* Bulk Action Bar */
.bulk-action-bar {
  background: var(--brand-red-light);
  border-bottom: 1px solid rgba(184, 29, 36, 0.2);
  padding: 0.65rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeIn 0.2s ease;
}

.bulk-info {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-red);
}

.bulk-buttons {
  display: flex;
  gap: 0.5rem;
}

/* Table Design */
.table-responsive {
  flex: 1;
  overflow-x: auto;
  position: relative;
}

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

.datadesk-table th {
  background: var(--bg-card-alt);
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  user-select: none;
}

.datadesk-table th.sortable {
  cursor: pointer;
  transition: color 0.15s ease;
}

.datadesk-table th.sortable:hover {
  color: var(--brand-red);
}

.datadesk-table th i {
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.datadesk-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color-light);
  color: var(--text-main);
  vertical-align: middle;
}

.datadesk-table tbody tr {
  transition: background-color 0.15s ease;
}

.datadesk-table tbody tr:hover {
  background-color: var(--bg-hover);
}

.datadesk-table tbody tr.row-selected {
  background-color: var(--brand-red-light);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-verified { background: var(--status-verified-bg); color: var(--status-verified-text); border: 1px solid rgba(5, 150, 105, 0.2); }
.badge-pending { background: var(--status-pending-bg); color: var(--status-pending-text); border: 1px solid rgba(217, 119, 6, 0.2); }
.badge-followup { background: var(--status-followup-bg); color: var(--status-followup-text); border: 1px solid rgba(37, 99, 235, 0.2); }
.badge-completed { background: var(--status-completed-bg); color: var(--status-completed-text); border: 1px solid rgba(124, 58, 237, 0.2); }
.badge-rejected { background: var(--status-rejected-bg); color: var(--status-rejected-text); border: 1px solid rgba(220, 38, 38, 0.2); }

.category-tag {
  background: var(--bg-app);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 500;
}

/* Action Icons inside Table */
.action-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.table-act-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.table-act-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--brand-red);
}

.table-act-btn.btn-delete:hover {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

/* Empty State */
.empty-state {
  padding: 4rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.empty-icon {
  font-size: 3rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.empty-state h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-main);
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

/* Table Footer & Pagination */
.table-footer {
  padding: 0.85rem 1.35rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  background: var(--bg-card-alt);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.page-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.rows-select {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.8rem;
}

.page-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-btn:not(:disabled):hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.page-indicator {
  font-weight: 700;
  padding: 0 0.5rem;
  color: var(--brand-red);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-card.modal-sm {
  max-width: 420px;
}

.modal-header {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--brand-gold);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-main);
  line-height: 1.2;
}

.modal-sub {
  font-size: 0.72rem;
  color: var(--brand-gold-dark);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--brand-red);
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--bg-card-alt);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* Detail View Elements */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--bg-app);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.detail-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.detail-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-red);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
  pointer-events: auto;
  animation: slideInRight 0.25s ease;
  min-width: 260px;
}

.toast.toast-success {
  border-left-color: #10b981;
}

.toast.toast-warning {
  border-left-color: #f59e0b;
}

.toast.toast-danger {
  border-left-color: #ef4444;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVE DESIGN
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.65rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .nav-controls {
    width: 100%;
    justify-content: space-between;
  }
  .two-cols, .three-cols {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .banner-strip {
    flex-direction: column;
    align-items: flex-start;
  }
  .banner-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
