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

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

/* Custom Nav Buttons */
.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.15s ease-in-out;
  white-space: nowrap;
  width: 100%;
}
.nav-btn:hover {
  background-color: #1e293b;
  color: #f8fafc;
}
.nav-btn.active {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Cards */
.card {
  background-color: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(30, 41, 59, 0.8);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
}
.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f1f5f9;
}
.stat-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  background-color: #059669;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.75rem;
  transition: background-color 0.15s ease-in-out;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
  background-color: #10b981;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.625rem;
  background-color: #1e293b;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.75rem;
  border: 1px solid #334155;
  transition: all 0.15s ease-in-out;
}
.btn-secondary:hover {
  background-color: #334155;
  color: #ffffff;
}

/* Forms */
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.375rem;
}
.input-text, .input-select {
  width: 100%;
  background-color: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  color: #f8fafc;
  outline: none;
  transition: all 0.2s ease-in-out;
}
.input-text:hover, .input-select:hover {
  background-color: rgba(30, 41, 59, 0.85);
  border-color: rgba(71, 85, 105, 0.9);
}
.input-text:focus, .input-select:focus {
  background-color: #0f172a;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Prevent browser autofill ugly white/yellow background in dark mode */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 40px #1e293b inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #34d399 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #334155;
  transition: .2s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #10b981;
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
