@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@400;700;900&display=swap');

:root {
  --blue-dark: #0d1b3e;
  --blue-mid: #1a3a6e;
  --blue-main: #1e5db5;
  --blue-light: #2e7de0;
  --blue-glow: #4a9eff;
  --green-main: #22c55e;
  --green-dark: #16a34a;
  --green-glow: #4ade80;
  --orange: #f97316;
  --red: #ef4444;
  --yellow: #eab308;
  --purple: #8b5cf6;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --bg-main: #dde8f8;
  --bg-card: rgba(255,255,255,0.92);
  --shadow: 0 4px 24px rgba(30,93,181,0.15);
  --shadow-lg: 0 8px 40px rgba(30,93,181,0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 60px;
  --footer-h: 36px;
}

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

body {
  font-family: 'Exo 2', sans-serif;
  background: var(--bg-main);
  color: var(--gray-800);
  min-height: 100vh;
  overflow: hidden;
}

/* ============ SCREEN CONTAINER ============ */
.screen-wrap {
  height: calc(100vh - var(--header-h) - var(--footer-h)); margin-top: var(--header-h);
  overflow-y: auto;
  background: linear-gradient(135deg, #c8dcf5 0%, #dde8f8 40%, #cdd9ef 100%);
  position: relative;
}
.screen-wrap::before {
  content: '';
  position: fixed;
  top: var(--header-h); left: 0; right: 0; bottom: var(--footer-h);
  background:
    radial-gradient(ellipse at 20% 20%, rgba(30,93,181,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(34,197,94,0.06) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}
.screen-content { position: relative; z-index: 1; padding: 24px; }

/* ============ SCREEN TITLE ============ */
.screen-title-bar {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.screen-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px; font-weight: 700; color: var(--blue-dark);
  letter-spacing: 1px;
}
.screen-subtitle { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.back-btn {
  background: var(--bg-card); border: 1px solid var(--gray-200); color: var(--blue-main);
  padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer;
  font-family: 'Exo 2', sans-serif; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px; transition: all 0.2s;
  box-shadow: var(--shadow);
}
.back-btn:hover { background: var(--blue-main); color: white; }

/* ============ TABLES ============ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); color: white; padding: 10px 14px; text-align: left; font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; white-space: nowrap; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); font-size: 13px; vertical-align: middle; }
.data-table tr:hover td { background: rgba(30,93,181,0.04); }
.data-table tr:last-child td { border-bottom: none; }

/* ============ BADGES ============ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* ============ ALERT MESSAGES ============ */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; display: flex; align-items: flex-start; gap: 10px; }
.alert-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #78350f; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #14532d; }
.alert-danger { background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; }
.alert-info { background: #eff6ff; border: 1px solid #93c5fd; color: #1e3a5f; }

/* ============ SPINNER/LOADING ============ */
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.8s linear infinite; }

/* ============ QUANTITY CONTROLS ============ */
.qty-ctrl { display: flex; align-items: center; gap: 0; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--gray-200); background: var(--gray-100); cursor: pointer; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all 0.15s; color: var(--gray-700); }
.qty-btn:first-child { border-radius: 6px 0 0 6px; }
.qty-btn:last-child { border-radius: 0 6px 6px 0; }
.qty-btn:hover { background: var(--blue-main); color: white; border-color: var(--blue-main); }
.qty-num { min-width: 44px; text-align: center; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); height: 28px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--gray-800); background: white; }

/* ============ TOGGLE SWITCH ============ */
.toggle { position: relative; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--gray-300); border-radius: 24px; cursor: pointer; transition: 0.3s; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.3s; }
.toggle input:checked + .toggle-slider { background: var(--green-main); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ============ SEARCH INPUT ============ */
.search-box { position: relative; }
.search-box input { padding-left: 36px; }
.search-box .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 14px; }

@keyframes metaPulse {
  0%,100% { box-shadow: 0 0 8px rgba(251,191,36,0.8), 0 0 20px rgba(251,191,36,0.4); }
  50%      { box-shadow: 0 0 20px rgba(251,191,36,1.0), 0 0 40px rgba(251,191,36,0.7); }
}
