/* ==========================================================================
   Satin Shine — Production Manager App
   Theme: Indian Flag Palette (Saffron #FF6F00 / #FF9933, Pure White, India Green #138808 / #16A34A, Navy #0B1B3A)
   UI: Mobile App First / PWA Style, Touch Friendly, Responsive
   ========================================================================== */

:root {
  /* Indian Flag Inspired Palette */
  --saffron: #FF6F00;
  --saffron-light: #FFF3E0;
  --saffron-glow: rgba(255, 111, 0, 0.25);
  --kesari: #FF9933;
  --green: #138808;
  --green-light: #E8F5E9;
  --green-glow: rgba(19, 136, 8, 0.25);
  --navy: #0B1B3A;
  --navy-light: #162A56;
  --navy-card: #122451;
  
  /* System Colors */
  --bg: #F4F6F9;
  --card-bg: #FFFFFF;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  
  /* Status Colors */
  --at-risk: #DC2626;
  --at-risk-bg: #FEF2F2;
  --due-today: #D97706;
  --due-today-bg: #FFFBEB;
  --on-track: #138808;
  --on-track-bg: #E8F5E9;
  --info: #0284C7;
  --info-bg: #F0F9FF;
  
  /* Typography & Layout */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Poppins', var(--font-main);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(11, 27, 58, 0.08);
  --shadow-lg: 0 10px 25px rgba(11, 27, 58, 0.12);
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding-bottom: 80px; /* Space for bottom navigation */
}

/* Mobile App Container Wrapper */
.app-container {
  width: 100%;
  max-width: 520px; /* Mobile App Viewport on Desktop */
  background: #FFFFFF;
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0,0,0,0.08);
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .app-container.expanded-view {
    max-width: 900px;
  }
}

/* ==========================================================================
   ATTRACTIVE BRAND LOADER
   ========================================================================== */
.app-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 58, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.app-loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-glow-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring-saffron {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--saffron);
  border-right-color: var(--kesari);
  animation: spin 1.1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
  box-shadow: 0 0 20px var(--saffron-glow);
}

.loader-ring-green {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 3.5px solid transparent;
  border-bottom-color: var(--green);
  border-left-color: #22C55E;
  animation: spin-reverse 0.9s linear infinite;
  box-shadow: 0 0 15px var(--green-glow);
}

.loader-core-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--saffron) 0%, #FFFFFF 50%, var(--green) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  animation: pulse-glow 1.5s ease-in-out infinite;
}

.loader-brand-text {
  margin-top: 18px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.5px;
}

.loader-brand-sub {
  font-size: 11px;
  color: var(--kesari);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes spin-reverse {
  to { transform: rotate(-360deg); }
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(0.95); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; }
}

/* ==========================================================================
   TOP APP BAR & NAVBAR
   ========================================================================== */
.top-app-bar {
  background: var(--navy);
  color: #FFFFFF;
  padding: 14px 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  border-bottom: 2px solid var(--saffron);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--saffron) 0%, var(--kesari) 100%);
  color: var(--navy);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px var(--saffron-glow);
}

.brand-titles h1 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.brand-titles p {
  font-size: 10px;
  color: #94A3B8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--saffron);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.user-avatar {
  width: 24px;
  height: 24px;
  background: var(--green);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  color: #E2E8F0;
}

/* ==========================================================================
   STICKY BOTTOM NAVIGATION (APP BAR)
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 6px;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

@media (min-width: 768px) {
  .app-container.expanded-view ~ .bottom-nav {
    max-width: 900px;
  }
}

.nav-tab {
  flex: 1;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-tab svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.2s ease;
}

.nav-tab.active {
  color: var(--saffron);
}

.nav-tab.active svg {
  transform: scale(1.15);
  stroke: var(--saffron);
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  background: var(--saffron);
  border-radius: 0 0 4px 4px;
}

.nav-tab .badge {
  position: absolute;
  top: 2px;
  right: 18%;
  background: var(--at-risk);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   FLOATING ACTION BUTTON (FAB)
   ========================================================================== */
.fab-btn {
  position: fixed;
  bottom: 84px;
  right: calc(50% - 240px);
  background: linear-gradient(135deg, var(--saffron) 0%, #E65100 100%);
  color: #FFFFFF;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px var(--saffron-glow);
  border: none;
  cursor: pointer;
  z-index: 99;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 540px) {
  .fab-btn {
    right: 20px;
  }
}

.fab-btn:hover {
  transform: scale(1.08) rotate(90deg);
}

.fab-btn svg {
  width: 26px;
  height: 26px;
  stroke: #FFFFFF;
  stroke-width: 2.5;
}

/* ==========================================================================
   APP CONTENT PANELS & SECTIONS
   ========================================================================== */
.app-content {
  flex: 1;
  padding: 16px 18px 40px;
  background: var(--bg);
}

.tab-panel {
  display: none;
  animation: panelSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-panel.active {
  display: block;
}

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

/* Screen Title Header */
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   KPI CARDS (Indian Flag Color Coding)
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.kpi-card.active {
  border-color: var(--saffron);
  outline: 2px solid var(--saffron);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.kpi-card.kpi-open::before { background: var(--green); }
.kpi-card.kpi-due::before { background: var(--kesari); }
.kpi-card.kpi-risk::before { background: var(--at-risk); }

.kpi-card.kpi-open { background: var(--green-light); color: var(--green); border-color: #C8E6C9; }
.kpi-card.kpi-due { background: var(--due-today-bg); color: var(--due-today); border-color: #FDE68A; }
.kpi-card.kpi-risk { background: var(--at-risk-bg); color: var(--at-risk); border-color: #FECACA; }

.kpi-card .kpi-num {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2px;
}

.kpi-card .kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Search Bar */
.search-box {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.search-box svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
  margin-right: 8px;
  flex-shrink: 0;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  width: 100%;
  font-family: inherit;
  color: var(--text-primary);
}

/* ==========================================================================
   PRODUCTION ORDER CARDS (Multi-Handle Nested Accordions)
   ========================================================================== */
.order-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.order-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.order-card-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: #FFFFFF;
  transition: background 0.15s ease;
}

.order-card-header:hover {
  background: #FAFAFA;
}

.order-main-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-no-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-no {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.customer-name {
  font-size: 12px;
  color: var(--text-secondary);
}

.order-dates-summary {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.order-status-badge.on-track { background: var(--on-track-bg); color: var(--on-track); }
.order-status-badge.due-today { background: var(--due-today-bg); color: var(--due-today); }
.order-status-badge.at-risk { background: var(--at-risk-bg); color: var(--at-risk); }
.order-status-badge.completed { background: #F1F5F9; color: #475569; }

.accordion-chevron {
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.order-card.open .accordion-chevron {
  transform: rotate(180deg);
  stroke: var(--saffron);
}

/* Nested Handles Table Inside Order */
.order-card-body {
  display: none;
  background: #F8FAFC;
  border-top: 1px solid var(--border);
  padding: 12px 14px;
}

.order-card.open .order-card-body {
  display: block;
  animation: fadeIn 0.2s ease;
}

.handles-sublist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.handle-subitem {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.handle-subitem-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.handle-subitem-info p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.handle-station-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--saffron-light);
  color: var(--saffron);
}

.media-note-btn {
  background: transparent;
  border: none;
  color: var(--saffron);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-weight: 600;
}

/* ==========================================================================
   ADD ORDER 4-STEP WIZARD
   ========================================================================== */
.wizard-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  position: relative;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  z-index: 2;
  cursor: pointer;
}

.wizard-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E2E8F0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: var(--transition);
}

.wizard-step.active .wizard-dot {
  background: var(--saffron);
  color: #FFFFFF;
  box-shadow: 0 0 12px var(--saffron-glow);
}

.wizard-step.completed .wizard-dot {
  background: var(--green);
  color: #FFFFFF;
}

.wizard-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

.wizard-step.active .wizard-label {
  color: var(--saffron);
  font-weight: 700;
}

/* Form Styles */
.form-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-primary);
  background: #FFFFFF;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px var(--saffron-glow);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Suggestion Alert Banner */
.suggestion-banner {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #1E40AF;
}

.suggestion-banner b {
  font-weight: 700;
}

.btn-apply-suggestion {
  background: #2563EB;
  color: #FFFFFF;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--saffron) 0%, #E65100 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--saffron-glow);
}

.btn-primary:hover {
  background: #E65100;
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #F1F5F9;
}

.btn-success {
  background: var(--green);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--green-glow);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Voice Recorder Box */
.voice-recorder-box {
  border: 1.5px dashed var(--saffron);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  background: var(--saffron-light);
  margin-top: 10px;
}

.record-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--saffron);
  color: #FFFFFF;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--saffron-glow);
  transition: var(--transition);
}

.record-btn.recording {
  background: var(--at-risk);
  animation: pulse-recording 1s infinite;
}

@keyframes pulse-recording {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(220, 38, 38, 0.5); }
}

/* Image Upload Preview */
.image-preview-wrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

/* ==========================================================================
   STATION BOARD ACCORDIONS & WORKER PUNCH
   ========================================================================== */
.station-accordion {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.station-head {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  background: #FFFFFF;
}

.station-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.station-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.station-count-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--saffron-light);
  color: var(--saffron);
}

.station-body {
  display: none;
  background: #F8FAFC;
  border-top: 1px solid var(--border);
  padding: 12px;
}

.station-accordion.open .station-body {
  display: block;
}

.station-job-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.job-order-no {
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
}

.job-punch-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

/* ==========================================================================
   COLOR BATCH SCREEN
   ========================================================================== */
.batch-select-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.batch-chk {
  width: 18px;
  height: 18px;
  accent-color: var(--saffron);
  cursor: pointer;
}

.batch-history-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
}

/* ==========================================================================
   MODALS / BOTTOM SHEETS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 58, 0.6);
  backdrop-filter: blur(4px);
  z-index: 5000;
  display: none;
  align-items: flex-end; /* Mobile Bottom Sheet */
  justify-content: center;
}

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

.modal-sheet {
  width: 100%;
  max-width: 520px;
  background: #FFFFFF;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.modal-close-btn {
  background: #F1F5F9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--navy);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  border-left: 4px solid var(--saffron);
  animation: toastIn 0.25s ease;
}

.toast.toast-success { border-left-color: var(--green); }
.toast.toast-error { border-left-color: var(--at-risk); }

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