/* داشبورد پروژه دانشجویی سجاد - استایل مدرن، مینیمال و لوکس لبه (Obsidian & Zinc) */

/* ۱. بارگذاری محلی و صددرصد آفلاین فونت وزیرمتن (بدون وابستگی به CDN خارجی) */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-main: #09090b;
  --bg-card: #121215;
  --bg-card-hover: #18181b;
  --border-subtle: #27272a;
  --border-focus: #3f3f46;
  --text-main: #fafafa;
  --text-muted: #a1a1aa;
  --text-faint: #71717a;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.15);
  --accent-blue: #3b82f6;
  --accent-amber: #f59e0b;
}

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

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  overflow-x: hidden;
}

/* اسکرول‌بار مدرن و باریک */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* افکت‌های گرادینت مات و شیشه‌ای کارت‌ها */
.glass-panel {
  background: rgba(18, 18, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-card {
  background: #121215;
  border: 1px solid #27272a;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: #3f3f46;
  transform: translateY(-1px);
}

/* تب‌ها */
.tab-btn {
  position: relative;
  transition: all 0.15s ease;
}

.tab-btn.active {
  color: #10b981 !important;
  border-bottom-color: #10b981 !important;
}

/* کارت‌های انتخاب پروتکل */
.proto-card {
  transition: all 0.15s ease;
}

.proto-card:hover {
  background-color: #1c1c20;
}

.proto-card:has(input:checked) {
  border-color: rgba(16, 185, 129, 0.4);
  background-color: rgba(16, 185, 129, 0.05);
}

/* برچسب‌های پورت */
.port-badge {
  transition: all 0.15s ease;
}

.port-badge:hover {
  border-color: #52525b;
}

.port-badge:has(input:checked) {
  border-color: rgba(16, 185, 129, 0.5);
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

/* برچسب‌های کشور */
.country-pill {
  transition: all 0.15s ease;
}

.country-pill:hover {
  border-color: #52525b;
}

.country-pill:has(input:checked) {
  border-color: rgba(16, 185, 129, 0.5);
  background-color: rgba(16, 185, 129, 0.1);
  color: #fff;
}

/* پرتال وضعیت و بارگذاری */
.modal-backdrop {
  background-color: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
}

/* انیمیشن پالس زنده */
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.15); }
}

.pulse-glow {
  animation: pulseGlow 2s infinite ease-in-out;
}
