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

:root {
  --bg-gradient-start: #dce8ff;
  --bg-gradient-mid: #e8eeff;
  --bg-gradient-end: #f4f7ff;
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-bg-strong: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 8px 32px rgba(30, 58, 138, 0.1);
  --primary: #0a1628;
  --primary-rgb: 10, 22, 40;
  --primary-light: #d4dce8;
  --primary-soft: #9eb4cc;
  --primary-dark: #050b14;
  --primary-glow: #1a3a6b;
  --accent-indigo: #6366f1;
  --accent-sky: #38bdf8;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --sidebar-width: 260px;
  --radius: 16px;
  --radius-sm: 12px;
  --blur-glass: 28px;
  --select-arrow-size: 16px;
  --select-arrow-offset: 12px;
  --select-padding-end: 2.5rem;
  --field-font-size: 13px;
  --field-padding-y: 9px;
  --field-padding-x: 12px;
  --field-height: 38px;
  --font-en: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-fa: 'IRANYekan', 'IranYekan', 'Yekan', Tahoma, sans-serif;
  --font-ui: var(--font-en), var(--font-fa);
  --card-hover-lift: -4px;
  --card-hover-shadow: 0 16px 48px rgba(var(--primary-rgb) / 0.14);
  --card-hover-transition: transform 0.25s ease, box-shadow 0.25s ease;
}

html,
body,
#root {
  height: 100%;
}

body {
  font-family: var(--font-ui);
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(99, 102, 241, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(56, 189, 248, 0.16) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 45%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Interactive glass cards: lift + shadow on hover (no border change) */
[data-card-hover] {
  transition: var(--card-hover-transition);
}

[data-card-hover]:hover,
[data-card-hover][data-card-hover-active='true'] {
  transform: translateY(var(--card-hover-lift));
  box-shadow: var(--card-hover-shadow);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: inherit;
  font-size: var(--field-font-size);
  line-height: 1.4;
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-sm);
  min-height: var(--field-height);
  padding: var(--field-padding-y) var(--select-padding-end) var(--field-padding-y) var(--field-padding-x);
  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='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--select-arrow-offset) center;
  background-size: var(--select-arrow-size);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.14);
}

select[multiple] {
  appearance: auto;
  -webkit-appearance: listbox;
  -moz-appearance: listbox;
  background-image: none;
  padding: 8px 10px;
  line-height: 1.4;
}

select[multiple] option {
  padding: 4px 6px;
}

input:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='range']):not([type='hidden']),
textarea {
  font-family: var(--font-ui);
  font-size: var(--field-font-size);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

:where(input:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='range']):not([type='hidden'])) {
  min-height: var(--field-height);
  padding: var(--field-padding-y) var(--field-padding-x);
  line-height: 1.4;
  box-sizing: border-box;
}

input:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='range']):not([type='hidden']):focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.14);
}

input:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='range']):not([type='hidden'])::placeholder,
textarea::placeholder {
  font-family: var(--font-ui);
}

[dir='rtl'],
:lang(fa),
.faText {
  font-family: var(--font-ui);
  font-weight: 400;
}
