@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Core Palette Referenced from Uploaded UI/UX Templates */
  --bg-canvas: #0b1118;          /* Refined dark midnight navy canvas (soft, glare-free) */
  --bg-navy-deep: #0f1822;       /* Deep midnight navy from Template 2 */
  --bg-navy-card: #14202e;       /* Elevated midnight navy */
  --bg-slate: #334b63;           /* Signature matte steel-slate blue from Template 2 */
  --bg-slate-dark: #293d52;      /* Darker steel-slate surface */
  --bg-charcoal-calm: #32434d;   /* "Stay tuned" calm dark slate from Template 3 */
  --bg-white: #ffffff;           /* Crisp white card surface from Template 1 */
  --bg-input-light: #f1f4f8;     /* Soft pill input surface */

  /* Accents (Clean, Flat, Non-Neon) */
  --accent-cyan: #5ce1e6;        /* Clean ice-cyan from Template 2 */
  --accent-blue: #1e90ff;        /* Corporate sky-blue from Template 1 */
  --accent-gold: #f0b44c;        /* Warm muted gold pill from Template 3 ("Stay tuned") */
  --accent-green: #2eb872;       /* Clean understated green for active/live state */
  --accent-coral: #e56b6f;       /* Muted coral for alerts/reset */

  /* Typography */
  --text-white: #ffffff;
  --text-light: #d8e2ec;
  --text-muted: #9fb3c8;
  --text-navy: #0f1822;
  --text-navy-muted: #52667a;

  /* Borders & Hairlines */
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-light-card: #e2e8f0;

  /* Radii (Matching Pill Inputs & Rounded Cards in Reference Images) */
  --radius-pill: 9999px;
  --radius-card: 26px;
  --radius-md: 16px;
  --radius-sm: 12px;

  /* Clean Architectural Shadows (No Neon Glows) */
  --shadow-card: 0 14px 34px rgba(15, 24, 34, 0.12);
  --shadow-card-lg: 0 22px 48px rgba(15, 24, 34, 0.18);
  --shadow-subtle: 0 4px 12px rgba(15, 24, 34, 0.08);

  --transition-fast: 160ms ease;
  --transition-normal: 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-canvas);
  background-image: radial-gradient(circle at 50% 0%, #162436 0%, #0b1118 68%);
  background-attachment: fixed;
  color: var(--text-white);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(82, 102, 122, 0.3);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(82, 102, 122, 0.5);
}

/* Surface Cards */
.surface-white {
  background: var(--bg-white);
  color: var(--text-navy);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15, 24, 34, 0.06);
}

.surface-slate {
  background: var(--bg-slate);
  color: var(--text-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.surface-navy {
  background: var(--bg-navy-deep);
  color: var(--text-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.surface-calm {
  background: var(--bg-charcoal-calm);
  color: var(--text-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Minimal Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-locked {
  background: rgba(15, 24, 34, 0.08);
  color: var(--text-navy-muted);
}
.status-locked .dot {
  background: #829ab1;
}

.status-locked-dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
}
.status-locked-dark .dot {
  background: var(--text-muted);
}

.status-live {
  background: rgba(46, 184, 114, 0.15);
  color: #1f8a52;
}
.status-live .dot {
  background: var(--accent-green);
}

.status-live-dark {
  background: rgba(92, 225, 230, 0.18);
  color: var(--accent-cyan);
}
.status-live-dark .dot {
  background: var(--accent-cyan);
}

.status-closed {
  background: rgba(240, 180, 76, 0.2);
  color: #b7791f;
}
.status-closed .dot {
  background: var(--accent-gold);
}

.status-completed {
  background: rgba(30, 144, 255, 0.14);
  color: var(--accent-blue);
}
.status-completed .dot {
  background: var(--accent-blue);
}

/* Clean Tag / Pill */
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  background: #eef2f6;
  color: var(--bg-slate);
}

.tag-pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-cyan);
}

/* Pill Buttons (Referenced from Template 1, 2 & 3) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  user-select: none;
}

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

.btn-navy {
  background: var(--bg-navy-deep);
  color: var(--text-white);
}
.btn-navy:hover:not(:disabled) {
  background: #1c2b3b;
  transform: translateY(-1px);
}

.btn-cyan {
  background: var(--accent-cyan);
  color: var(--bg-navy-deep);
  font-weight: 700;
}
.btn-cyan:hover:not(:disabled) {
  background: #48d1d6;
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--accent-gold);
  color: var(--bg-navy-deep);
  font-weight: 700;
}
.btn-gold:hover:not(:disabled) {
  background: #e5a53a;
  transform: translateY(-1px);
}

.btn-white {
  background: var(--bg-white);
  color: var(--bg-navy-deep);
  font-weight: 700;
}
.btn-white:hover:not(:disabled) {
  background: #f1f5f9;
}

.btn-outline {
  background: transparent;
  color: var(--text-navy);
  border-color: #cbd5e1;
}
.btn-outline:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-outline-light:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
}

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

.btn-lg {
  padding: 15px 30px;
  font-size: 0.96rem;
}

/* Pill Form Controls (Referenced from Login Screen in Template 1, 2 & 3) */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-navy-muted);
  padding-left: 14px;
}

.field-label-light {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2px;
}

.pill-input,
.pill-select {
  width: 100%;
  background: var(--bg-white);
  border: 1px solid #d8e2ec;
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  color: var(--text-navy);
  font-family: inherit;
  font-size: 0.93rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pill-input::placeholder {
  color: #94a3b8;
}

.pill-input:focus,
.pill-select:focus {
  outline: none;
  border-color: var(--bg-slate);
  box-shadow: 0 0 0 3px rgba(51, 75, 99, 0.15);
}

.pill-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334b63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}

.textarea-clean {
  width: 100%;
  background: var(--bg-input-light);
  border: 1px solid #d8e2ec;
  border-radius: 18px;
  padding: 15px 18px;
  color: var(--text-navy);
  font-family: inherit;
  font-size: 0.94rem;
  min-height: 112px;
  resize: vertical;
  line-height: 1.55;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.textarea-clean:focus {
  outline: none;
  background: var(--bg-white);
  border-color: var(--bg-slate);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 400px;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-navy-deep);
  color: var(--text-white);
  box-shadow: var(--shadow-card-lg);
  font-size: 0.86rem;
  font-weight: 500;
  animation: fadeIn 0.24s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}

.hidden {
  display: none !important;
}

/* Universal App Footer */
.app-global-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 16px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  flex-wrap: wrap;
  width: 100%;
}

.app-global-footer .footer-sdb-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  margin: 0 8px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
  transition: transform var(--transition-fast);
}

.app-global-footer .footer-sdb-logo:hover {
  transform: scale(1.15);
}

.app-global-footer.stage-footer {
  color: var(--text-light);
  opacity: 0.88;
  padding: 24px 16px 42px;
  font-size: 0.96rem;
}

.app-global-footer.stage-footer .footer-sdb-logo {
  height: 48px;
}

