@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";

/* ../shared/design-tokens.css */
:root {
  --ec-font-sans:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  --ec-font-mono:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  --ec-brand-dark: #0C2D48;
  --ec-brand: #145DA0;
  --ec-brand-light: #2E8BC0;
  --ec-brand-surface: #E8F4FD;
  --ec-brand-muted: #B1D4E0;
  --ec-success: #16a34a;
  --ec-success-light: #dcfce7;
  --ec-danger: #dc2626;
  --ec-danger-light: #fef2f2;
  --ec-warning: #d97706;
  --ec-warning-light: #fef3c7;
  --ec-info: #1565C0;
  --ec-info-light: #E3F2FD;
  --ec-gray-50: #f8fafc;
  --ec-gray-100: #f1f5f9;
  --ec-gray-200: #e2e8f0;
  --ec-gray-300: #cbd5e1;
  --ec-gray-400: #94a3b8;
  --ec-gray-500: #64748b;
  --ec-gray-600: #475569;
  --ec-gray-700: #334155;
  --ec-gray-800: #1e293b;
  --ec-gray-900: #0f172a;
  --ec-av-blue-bg:
    linear-gradient(
      135deg,
      #E0F0FF,
      #BCD8F5);
  --ec-av-blue-fg: #145DA0;
  --ec-av-teal-bg:
    linear-gradient(
      135deg,
      #D1FAE5,
      #A7F3D0);
  --ec-av-teal-fg: #047857;
  --ec-av-coral-bg:
    linear-gradient(
      135deg,
      #FEE2E2,
      #FECACA);
  --ec-av-coral-fg: #B91C1C;
  --ec-av-purple-bg:
    linear-gradient(
      135deg,
      #EDE9FE,
      #DDD6FE);
  --ec-av-purple-fg: #6D28D9;
  --ec-av-amber-bg:
    linear-gradient(
      135deg,
      #FEF3C7,
      #FDE68A);
  --ec-av-amber-fg: #B45309;
  --ec-space-xs: 4px;
  --ec-space-sm: 8px;
  --ec-space-md: 12px;
  --ec-space-lg: 16px;
  --ec-space-xl: 20px;
  --ec-space-2xl: 24px;
  --ec-space-3xl: 32px;
  --ec-radius-sm: 8px;
  --ec-radius-md: 12px;
  --ec-radius-lg: 16px;
  --ec-radius-xl: 20px;
  --ec-radius-full: 9999px;
  --ec-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --ec-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  --ec-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --ec-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
  --ec-shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.10);
  --ec-shadow-brand: 0 4px 20px rgba(20, 93, 160, 0.12);
  --ec-transition-fast: 0.15s ease;
  --ec-transition-normal: 0.2s ease;
  --ec-transition-slow: 0.3s ease;
  --ec-wa-green: #25D366;
  --ec-wa-dark: #128C7E;
}

/* src/styles.css */
:root {
  --font-sans:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  --color-brand-dark: #0C2D48;
  --color-brand: #145DA0;
  --color-brand-light: #2E8BC0;
  --color-brand-surface: #E8F4FD;
  --color-brand-muted: #B1D4E0;
  --color-background-primary: #ffffff;
  --color-background-secondary: #F4F6FA;
  --color-background-tertiary: #fafbfc;
  --color-border-primary: #cbd5e1;
  --color-border-secondary: #e2e8f0;
  --color-border-tertiary: #f1f5f9;
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #94a3b8;
  --color-text-success: #16a34a;
  --color-primary: #145DA0;
  --color-primary-light: #E8F4FD;
  --color-success: #16a34a;
  --color-success-light: #dcfce7;
  --color-danger: #dc2626;
  --color-danger-light: #fef2f2;
  --color-warning: #d97706;
  --color-warning-light: #fef3c7;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 20px;
  --spacing-2xl: 24px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-elevated: 0 4px 20px rgba(20, 93, 160, 0.12);
}
body.a11y-mode {
  --color-background-primary: #ffffff;
  --color-background-secondary: #e5e5e5;
  --color-background-tertiary: #d5d5d5;
  --color-border-primary: #000000;
  --color-border-secondary: #333333;
  --color-border-tertiary: #666666;
  --color-text-primary: #000000;
  --color-text-secondary: #111111;
  --color-text-tertiary: #222222;
}
body.a11y-mode .scroll-area {
  zoom: 1.15;
}
body.a11y-mode * {
  font-weight: 600 !important;
}
body.a11y-mode .card,
body.a11y-mode .metric-tile,
body.a11y-mode .pkg-option {
  border: 2px solid #000;
}
body.a11y-mode .tap-primary,
body.a11y-mode .tap-success {
  border: 2px solid #000;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-sans);
  background-color: var(--color-background-secondary);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes detailSlideIn {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 800px;
  }
}
@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes sheetSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.spinner-global {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--color-border-secondary);
  border-top: 2.5px solid var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.skeleton-base {
  background:
    linear-gradient(
      90deg,
      #f0f0f0 25%,
      #e8e8e8 50%,
      #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite ease-in-out;
}
app-root {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: var(--color-background-secondary);
  overflow: hidden;
}
.top-bar {
  background:
    linear-gradient(
      135deg,
      var(--color-brand-dark) 0%,
      var(--color-brand) 50%,
      var(--color-brand-light) 100%);
  padding: 0;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.top-bar::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.top-bar::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 40%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}
.top-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 16px;
  position: relative;
  z-index: 1;
}
.top-bar-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.top-bar-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.scroll-area {
  flex: 1;
  overflow-y: auto;
  background: var(--color-background-secondary);
  -webkit-overflow-scrolling: touch;
}
.section {
  padding: 12px 14px 0;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}
.card {
  background: var(--color-background-primary);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:active {
  transform: scale(0.99);
}
.metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.metric-tile {
  background: var(--color-background-primary);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.metric-tile:active {
  transform: scale(0.97);
}
.metric-tile-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.metric-tile-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.metric-tile-sub {
  font-size: 11px;
  color: var(--color-text-success);
  margin-top: 4px;
  font-weight: 500;
}
.student-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.av {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.av-blue {
  background:
    linear-gradient(
      135deg,
      #E0F0FF,
      #BCD8F5);
  color: #145DA0;
}
.av-teal {
  background:
    linear-gradient(
      135deg,
      #D1FAE5,
      #A7F3D0);
  color: #047857;
}
.av-coral {
  background:
    linear-gradient(
      135deg,
      #FEE2E2,
      #FECACA);
  color: #B91C1C;
}
.av-purple {
  background:
    linear-gradient(
      135deg,
      #EDE9FE,
      #DDD6FE);
  color: #6D28D9;
}
.av-amber {
  background:
    linear-gradient(
      135deg,
      #FEF3C7,
      #FDE68A);
  color: #B45309;
}
.s-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
}
.s-sub {
  font-size: 11px;
  color: var(--color-text-secondary);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-success {
  background: var(--color-success-light);
  color: var(--color-success);
}
.badge-warning {
  background: var(--color-warning-light);
  color: var(--color-warning);
}
.badge-danger {
  background: var(--color-danger-light);
  color: var(--color-danger);
}
.badge-info {
  background: var(--color-brand-surface);
  color: var(--color-brand);
}
.badge-gray {
  background: #f1f5f9;
  color: #64748b;
}
.pill-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.sessions-bar {
  background: var(--color-background-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  height: 5px;
  margin: 4px 0;
}
.sessions-fill {
  height: 100%;
  border-radius: var(--radius-full);
}
.tap-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
  letter-spacing: 0.01em;
}
.tap-btn:active {
  transform: scale(0.97);
  opacity: 0.85;
}
.tap-primary {
  background:
    linear-gradient(
      135deg,
      var(--color-brand) 0%,
      var(--color-brand-light) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(20, 93, 160, 0.25);
}
.tap-success {
  background:
    linear-gradient(
      135deg,
      #16a34a 0%,
      #22c55e 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}
.tap-danger {
  background:
    linear-gradient(
      135deg,
      #dc2626 0%,
      #ef4444 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}
.tap-outline {
  background: transparent;
  border: 1.5px solid var(--color-border-secondary);
  color: var(--color-text-primary);
}
.tap-wa {
  background:
    linear-gradient(
      135deg,
      #25D366,
      #128C7E);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}
.divider {
  height: 1px;
  background: var(--color-border-tertiary);
  margin: 10px 0;
}
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.label-sm {
  font-size: 11px;
  color: var(--color-text-secondary);
}
.val-sm {
  font-size: 12px;
  color: var(--color-text-primary);
  font-weight: 500;
}
.text-danger {
  color: var(--color-danger) !important;
}
.text-success {
  color: var(--color-success) !important;
}
.text-warning {
  color: var(--color-warning) !important;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.2);
}
.fab {
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background:
    linear-gradient(
      135deg,
      var(--color-brand) 0%,
      var(--color-brand-light) 100%);
  color: #fff;
  border: none;
  font-size: 24px;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(20, 93, 160, 0.35);
  z-index: 100;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(20, 93, 160, 0.25);
}
.alert-banner {
  background: var(--color-danger-light);
  border: 1px solid rgba(220, 38, 38, 0.1);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-banner-warn {
  background: var(--color-warning-light);
  border-color: rgba(217, 119, 6, 0.1);
}
.alert-icon {
  font-size: 16px;
}
.alert-text {
  font-size: 12px;
  color: var(--color-danger);
  flex: 1;
  font-weight: 500;
}
.alert-text-warn {
  font-size: 12px;
  color: var(--color-warning);
  flex: 1;
  font-weight: 500;
}
.alert-action {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-brand);
  cursor: pointer;
  white-space: nowrap;
}
.att-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-tertiary);
}
.att-item:last-child {
  border-bottom: none;
}
.one-tap {
  width: 56px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.one-tap:active {
  transform: scale(0.92);
}
.tap-done {
  background: var(--color-success-light);
  color: var(--color-success);
}
.tap-mark {
  background: var(--color-brand);
  color: #fff;
}
.photo-zone {
  border: 2px dashed var(--color-border-secondary);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 10px;
  transition: border-color 0.2s ease;
}
.photo-icon {
  font-size: 28px;
  margin-bottom: 6px;
}
.photo-hint {
  font-size: 12px;
  color: var(--color-text-secondary);
}
.receipt-card {
  background: var(--color-background-secondary);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.rcpt-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 2px 0;
}
.pkg-option {
  border: 1.5px solid var(--color-border-tertiary);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}
.pkg-option:active {
  transform: scale(0.98);
}
.pkg-option.selected {
  border-color: var(--color-brand);
  background: var(--color-brand-surface);
}
.pkg-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}
.pkg-detail {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}
.pkg-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brand);
  margin-top: 4px;
}
.bottom-nav {
  background: var(--color-background-primary);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  padding: 8px 0 max(env(safe-area-inset-bottom, 8px), 12px);
  flex-shrink: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}
.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-tertiary);
  cursor: pointer;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
  position: relative;
}
.bnav-item.active {
  color: var(--color-brand);
  font-weight: 600;
}
.bnav-item.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-brand);
}
.bnav-icon {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.bnav-item.active .bnav-icon {
  transform: scale(1.1);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
router-outlet + * {
  animation: pageSlideIn 0.25s ease-out;
}
@keyframes pageSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.scroll-area::-webkit-scrollbar {
  width: 3px;
}
.scroll-area::-webkit-scrollbar-track {
  background: transparent;
}
.scroll-area::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 10px;
}

/* angular:styles/global:styles */
