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

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

:root {
  --primary-50: #ecfdf5; --primary-100: #d1fae5; --primary-200: #a7f3d0;
  --primary-300: #6ee7b7; --primary-400: #34d399; --primary-500: #10b981;
  --primary-600: #059669; --primary-700: #047857; --primary-800: #065f46; --primary-900: #064e3b;
  --secondary-50: #fffbeb; --secondary-100: #fef3c7; --secondary-200: #fde68a;
  --secondary-300: #fcd34d; --secondary-400: #fbbf24; --secondary-500: #f59e0b;
  --secondary-600: #d97706; --secondary-700: #b45309; --secondary-800: #92400e; --secondary-900: #78350f;
  --font-main: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;
}

body {
  font-family: var(--font-main);
  background: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}
body.dark { background: #0f172a; color: #e2e8f0; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary-500); border-radius: 4px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.3); } 50% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } }

.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.dark-transition { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.spinner { border: 3px solid rgba(0,0,0,0.1); border-radius: 50%; border-top: 3px solid var(--primary-500); width: 24px; height: 24px; animation: spin 1s linear infinite; }

.toast {
  position: fixed; bottom: 24px; right: 24px; padding: 12px 20px; border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15); z-index: 9999; animation: slideIn 0.3s ease-out;
  font-size: 14px; font-weight: 500; font-family: var(--font-main); max-width: 360px;
}
.toast-success { background: var(--primary-600); color: white; }
.toast-error { background: #ef4444; color: white; }
.toast-warning { background: var(--secondary-500); color: white; }
.toast-info { background: #334155; color: white; }

.chart-bar { transition: height 1s cubic-bezier(.34,1.56,.64,1); height: 0; }

@media print {
  .no-print { display: none !important; }
  body { background: white; color: black; }
  .shadow-sm, .shadow-lg { box-shadow: none !important; }
}


@media (max-width: 767px) {
  app-sidebar {
    display: block;
    width: 0 !important;
    overflow: visible !important;
    flex-shrink: 0;
  }
  /* Give main content full width on mobile */
  main {
    width: 100% !important;
    padding: 16px !important;
  }
}
