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

/* Import Persian font */
@font-face {
  font-family: 'Yekan Bakh';
  src: url('./assets/fonts/YEKAN BAKH FA-EN 02 THIN.TTF') format('truetype');
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: 'Yekan Bakh';
  src: url('./assets/fonts/YEKAN BAKH FA-EN 03 LIGHT.TTF') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Yekan Bakh';
  src: url('./assets/fonts/YEKAN BAKH FA-EN 04 REGULAR.TTF') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Yekan Bakh';
  src: url('./assets/fonts/YEKAN BAKH FA-EN 05 MEDIUM.TTF') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Yekan Bakh';
  src: url('./assets/fonts/YEKAN BAKH FA-EN 06 BOLD.TTF') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Yekan Bakh';
  src: url('./assets/fonts/YEKAN BAKH FA-EN 07 HEAVY.TTF') format('truetype');
  font-weight: 900;
  font-style: normal;
}
:root,
:root[data-theme="dark"] {
  --bg: #0b1020;
  --panel: #12182c;
  --panel-2: #0f1430;
  --text: #e8ecf1;
  --muted: #9aa6b2;
  --accent: #6aa8ff;
  --accent-2: #8a7dff;
  --radius: 16px;
  
  /* Tooltip & Popup colors for dark theme */
  --tooltip-bg: rgba(10, 14, 36, 0.96);
  --tooltip-border: rgba(255,255,255,0.12);
  --tooltip-shadow: 0 8px 24px rgba(0,0,0,0.35);
  
  --popup-bg: rgba(12, 18, 42, 0.98);
  --popup-border: rgba(80,165,255,0.45);
  --popup-shadow: 0 12px 36px rgba(0,80,255,0.27), 0 12px 36px rgba(0,0,0,0.38);
  --popup-close-bg: rgba(80,165,255,0.15);
  --popup-close-color: #b6d7ff;
  --popup-close-hover-bg: rgba(80,165,255,0.3);
  --popup-close-hover-color: #fff;
}
:root[data-theme="light"] {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --panel-2: #f8f9fb;
  --text: #1a202c;
  --muted: #64748b;
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --radius: 16px;
  
  /* Tooltip & Popup colors for light theme */
  --tooltip-bg: rgba(255, 255, 255, 0.98);
  --tooltip-border: rgba(0,0,0,0.12);
  --tooltip-shadow: 0 8px 24px rgba(0,0,0,0.15);
  
  --popup-bg: rgba(255, 255, 255, 0.98);
  --popup-border: rgba(59,130,246,0.45);
  --popup-shadow: 0 12px 36px rgba(59,130,246,0.15), 0 12px 36px rgba(0,0,0,0.1);
  --popup-close-bg: rgba(59,130,246,0.1);
  --popup-close-color: #3b82f6;
  --popup-close-hover-bg: rgba(59,130,246,0.2);
  --popup-close-hover-color: #1e40af;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Yekan', 'Yekan Bakh', 'Vazirmatn', sans-serif;
}
html,
body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}
body {
  font-family: 'Yekan Bakh', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}
:root[data-theme="dark"] body {
  background: radial-gradient(1200px 800px at 80% -10%, #1a2250, transparent),
              radial-gradient(1000px 600px at -20% 10%, #1b2a4a, transparent),
              var(--bg);
}
:root[data-theme="light"] body {
  background: linear-gradient(135deg, #e0e7ff 0%, #f5f7fa 100%);
}
#app {
  width: 100%;
  height: 100%;
}
/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
/* Selection */
::selection {
  background: rgba(106, 168, 255, 0.3);
  color: var(--text);
}
/* Focus styles */
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Utility classes */
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--muted);
}
.text-accent {
  color: var(--accent);
}
/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.fade-in {
  animation: fadeIn 0.3s ease-out;
}
.slide-in-right {
  animation: slideInRight 0.3s ease-out;
}
/* Responsive utilities */
@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  :root {
    font-size: 13px;
  }
}
/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  .no-print {
    display: none !important;
  }
}
/* Tutorial custom styles are in OnboardingTutorial.vue component */
