/**
 * TaskFlow | تسک‌فلو
 * استایل‌های جامع طراحی پریمیوم تاریک شیشه‌ای (Premium Dark Glassmorphism)
 * کاملاً مستقل، بدون وابستگی خارجی و بهینه‌سازی شده برای RTL و فارسی
 */

/* ==================== بارگذاری قلم فارسی وزیرمتن (Offline Local Font) ==================== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/vazirmatn/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/vazirmatn/Vazirmatn-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/vazirmatn/Vazirmatn-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/vazirmatn/Vazirmatn-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/vazirmatn/Vazirmatn-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ==================== متغیرهای سراسری و طراحی (Design Tokens) ==================== */
:root {
  /* فعال‌سازی حالت تیره مرورگر برای کنترل‌های بومی (Date, Time, Select) */
  color-scheme: dark;

  /* پالت رنگی اختصاصی تم تیره (Dark Only) */
  --bg-primary: #0B0D12;
  --bg-secondary: #10131A;
  --bg-sidebar: #10131A;
  --bg-surface: #151923;
  --bg-card: #191E29;
  --bg-card-hover: #212735;
  --bg-glass: rgba(255, 255, 255, 0.035);
  --bg-glass-strong: rgba(255, 255, 255, 0.06);
  --bg-glass-card: rgba(25, 30, 41, 0.72);
  --bg-input: #121620;

  --border-color: rgba(255, 255, 255, 0.085);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.085);
  --border-glass-bright: rgba(255, 255, 255, 0.16);
  --border-glow-purple: rgba(146, 120, 255, 0.35);
  --border-glow-blue: rgba(101, 183, 255, 0.35);

  --color-primary: #9278FF;
  --color-primary-light: #B1A0FF;
  --color-primary-hover: #A08BFF;
  --color-primary-glow: rgba(146, 120, 255, 0.22);
  --color-primary-subtle: rgba(146, 120, 255, 0.12);

  --color-accent: #65B7FF;
  --color-accent-hover: #7EC4FF;
  --color-accent-glow: rgba(101, 183, 255, 0.2);

  --color-success: #45D9A0;
  --color-success-bg: rgba(69, 217, 160, 0.12);
  --color-success-border: rgba(69, 217, 160, 0.28);

  --color-warning: #FFC76A;
  --color-warning-bg: rgba(255, 199, 106, 0.12);
  --color-warning-border: rgba(255, 199, 106, 0.28);

  --color-danger: #FF647C;
  --color-danger-bg: rgba(255, 100, 124, 0.12);
  --color-danger-border: rgba(255, 100, 124, 0.28);

  --text-primary: #F1F3FA;
  --text-secondary: #C3C9D6;
  --text-muted: #929CAF;

  /* جلوه‌های شیشه‌ای و سایه‌های چندلایه */
  --glass-blur: 16px;
  --glass-blur-sm: 10px;
  --glass-blur-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-glass-elevated: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(146, 120, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --shadow-glow-purple: 0 0 30px rgba(146, 120, 255, 0.22);
  --shadow-glow-blue: 0 0 30px rgba(101, 183, 255, 0.2);

  /* ابعاد و فواصل استاندارد */
  --sidebar-width: 270px;
  --header-height: 72px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== ریست و پایه‌های سند ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv01' on, 'cv02' on;
  /* نورپردازی جوی نرم در پس‌زمینه عمیق */
  background-image:
    radial-gradient(circle at 80% 0%, rgba(146, 120, 255, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 20% 40%, rgba(101, 183, 255, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 60% 85%, rgba(146, 120, 255, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

/* وضعیت باز بودن مودال */
body.modal-open {
  overflow: hidden;
}

/* دسترس‌پذیری فوکوس کیبورد */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  box-shadow: 0 0 14px var(--color-primary-glow);
}

/* اسکرول‌بار شکیل تیره شیشه‌ای */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(146, 120, 255, 0.35);
}

/* ==================== چیدمان کلی اپلیکیشن ==================== */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* ==================== منوی کناری (Sidebar) ==================== */
.sidebar {
  width: var(--sidebar-width);
  background: rgba(16, 19, 26, 0.85);
  backdrop-filter: blur(var(--glass-blur-lg));
  -webkit-backdrop-filter: blur(var(--glass-blur-lg));
  border-inline-end: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  bottom: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition-normal);
  overflow-y: auto;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.45);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.sidebar-brand::after {
  content: '';
  position: absolute;
  bottom: -1px;
  inset-inline: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(146, 120, 255, 0.3), transparent);
}

.brand-logo {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(146, 120, 255, 0.4));
  transition: transform var(--transition-fast);
}

.sidebar-brand:hover .logo-svg {
  transform: scale(1.05) rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  line-height: 1.1;
  background: linear-gradient(135deg, #FFFFFF 30%, #B1A0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.sidebar-action {
  padding: 14px 16px 8px;
}

.sidebar-new-btn {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #9278FF 0%, #7656FF 100%);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 16px rgba(146, 120, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-new-btn:hover {
  background: linear-gradient(135deg, #A08BFF 0%, #856BFF 100%);
  box-shadow: 0 6px 22px rgba(146, 120, 255, 0.48), 0 0 20px rgba(146, 120, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.sidebar-new-btn:active {
  transform: translateY(1px);
}

.sidebar-new-btn .btn-icon-svg,
.sidebar-new-btn svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}

/* ناوبری سایدبار */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: start;
  position: relative;
  transition: all var(--transition-fast);
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateX(-2px);
}

.sidebar-nav-item.active {
  background: rgba(146, 120, 255, 0.12);
  color: var(--color-primary-light);
  font-weight: 700;
  border-color: rgba(146, 120, 255, 0.28);
  box-shadow: 0 4px 18px rgba(146, 120, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  box-shadow: 0 0 10px var(--color-primary);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.sidebar-nav-item:hover .nav-icon {
  transform: scale(1.1);
}

.nav-label {
  flex-grow: 1;
}

.nav-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-glass);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.nav-badge-warning {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
  border-color: var(--color-warning-border);
}

.nav-badge-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border-color: var(--color-success-border);
}

/* بخش دسته‌بندی‌ها در سایدبار */
.sidebar-categories-section {
  padding: 16px 12px;
  margin-block-start: 12px;
  border-top: 1px solid var(--border-subtle);
  flex-grow: 1;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 10px;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.btn-text-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1.3;
}

.btn-text-action:hover {
  color: var(--color-primary-light);
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.sidebar-cat-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
  text-align: start;
  transition: all var(--transition-fast);
}

.sidebar-cat-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.06);
}

.sidebar-cat-item.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(146, 120, 255, 0.25);
  color: var(--color-primary-light);
  font-weight: 600;
}

.cat-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.cat-name {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
}

.footer-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

/* ==================== بدنه اصلی و سربرگ ==================== */
.main-wrapper {
  flex-grow: 1;
  margin-inline-start: var(--sidebar-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: transparent;
}

/* سربرگ (Header) شیشه‌ای */
.app-header {
  height: var(--header-height);
  background: rgba(16, 19, 26, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-glass);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.header-start {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none !important;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.header-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* جعبه جست‌وجوی بلادرنگ شیشه‌ای */
.search-box {
  position: relative;
  width: 320px;
}

.search-icon {
  position: absolute;
  inset-inline-start: 13px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition-fast);
}

.search-input {
  width: 100%;
  padding: 10px 16px;
  padding-inline-start: 40px;
  background: rgba(18, 22, 32, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.search-input:focus {
  border-color: var(--color-primary);
  background: rgba(21, 25, 35, 0.95);
  box-shadow: 0 0 0 3px var(--color-primary-glow), 0 0 18px rgba(146, 120, 255, 0.15);
  outline: none;
}

.search-box:focus-within .search-icon {
  color: var(--color-primary-light);
}

/* دکمه ثبت کار در سربرگ */
.header-new-btn {
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary) 0%, #7656FF 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 14px rgba(146, 120, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.header-new-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
  box-shadow: 0 6px 20px rgba(146, 120, 255, 0.45), 0 0 16px rgba(146, 120, 255, 0.2);
  transform: translateY(-1px);
}

.header-new-btn:active {
  transform: translateY(1px);
}

.header-new-btn .btn-icon-svg,
.header-new-btn svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}

/* محتوای اصلی صفحات */
.app-main {
  flex-grow: 1;
  padding: 28px;
  max-width: 1380px;
  width: 100%;
  margin-inline: auto;
}

.view-panel {
  display: none;
  animation: panelFadeIn 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-panel-active {
  display: block;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== بنر اختصاصی هویت محصول (Hero Banner Card) ==================== */
.hero-banner-card {
  background: linear-gradient(135deg, rgba(25, 30, 41, 0.8) 0%, rgba(21, 25, 35, 0.88) 100%);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-xl);
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* هاله‌های نور پس‌زمینه بنر */
.hero-glow-orb {
  position: absolute;
  pointer-events: none;
  border-radius: var(--radius-full);
  filter: blur(55px);
  z-index: 1;
}

.hero-glow-purple {
  width: 220px;
  height: 220px;
  inset-inline-start: -40px;
  top: -40px;
  background: radial-gradient(circle, rgba(146, 120, 255, 0.28) 0%, transparent 70%);
}

.hero-glow-blue {
  width: 200px;
  height: 200px;
  inset-inline-end: 25%;
  bottom: -40px;
  background: radial-gradient(circle, rgba(101, 183, 255, 0.22) 0%, transparent 70%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
  z-index: 1;
}

.hero-banner-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: rgba(146, 120, 255, 0.12);
  border: 1px solid rgba(146, 120, 255, 0.32);
  color: var(--color-primary-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 0 14px rgba(146, 120, 255, 0.15);
}

.hero-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  box-shadow: 0 0 8px var(--color-primary-light);
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
}

/* ==================== دکمه مرکزی شیشه‌ای Hero ==================== */
.btn-hero-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  font-size: 0.96rem;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, rgba(146, 120, 255, 0.28) 0%, rgba(101, 183, 255, 0.16) 100%), rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(177, 160, 255, 0.45);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(146, 120, 255, 0.28), 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.btn-hero-glass:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 14px 34px rgba(146, 120, 255, 0.42), 0 0 24px rgba(101, 183, 255, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.btn-hero-glass:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 16px rgba(146, 120, 255, 0.2);
}

.btn-hero-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-hero-icon svg {
  width: 18px;
  height: 18px;
}

.btn-hero-text {
  position: relative;
  z-index: 2;
}

.btn-hero-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-hero-glass:hover .btn-hero-shimmer {
  left: 140%;
}

/* عنصر گرافیکی Hero */
.hero-visual {
  flex-shrink: 0;
  width: 340px;
  height: 215px;
  position: relative;
  z-index: 2;
}

.hero-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

/* انیمیشن شناور نرم عنصر گرافیکی Hero */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-svg-main-card {
  animation: heroFloat 5s ease-in-out infinite;
}

.hero-svg-badge {
  animation: heroFloat 4.2s ease-in-out infinite reverse;
}

/* ==================== شبکه کارت‌های شاخص (Stats Grid) ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@keyframes statCardFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card {
  background: linear-gradient(135deg, rgba(25, 30, 41, 0.75) 0%, rgba(21, 25, 35, 0.82) 100%);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: all var(--transition-fast);
  animation: statCardFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  position: relative;
  overflow: hidden;
}

/* ترتیب انیمیشن ورودی (Stagger) */
.stats-grid .stat-card:nth-child(1) { animation-delay: 0.04s; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.08s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.12s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.16s; }
.stats-grid .stat-card:nth-child(5) { animation-delay: 0.20s; }
.stats-grid .stat-card:nth-child(6) { animation-delay: 0.24s; }

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(146, 120, 255, 0.32);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(146, 120, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: transform var(--transition-fast);
}

.stat-card:hover .stat-icon-wrapper {
  transform: scale(1.08);
}

.stat-icon-wrapper svg {
  width: 19px;
  height: 19px;
}

.stat-icon-primary {
  background: rgba(146, 120, 255, 0.15);
  color: var(--color-primary-light);
  border-color: rgba(146, 120, 255, 0.28);
  box-shadow: 0 0 12px rgba(146, 120, 255, 0.2);
}
.stat-icon-accent {
  background: rgba(101, 183, 255, 0.15);
  color: var(--color-accent);
  border-color: rgba(101, 183, 255, 0.28);
  box-shadow: 0 0 12px rgba(101, 183, 255, 0.2);
}
.stat-icon-success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: var(--color-success-border);
  box-shadow: 0 0 12px rgba(69, 217, 160, 0.2);
}
.stat-icon-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border-color: var(--color-warning-border);
  box-shadow: 0 0 12px rgba(255, 199, 106, 0.2);
}
.stat-icon-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: var(--color-danger-border);
  box-shadow: 0 0 12px rgba(255, 100, 124, 0.2);
}
.stat-icon-muted {
  background: rgba(146, 156, 175, 0.12);
  color: var(--text-muted);
  border-color: rgba(146, 156, 175, 0.2);
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.text-danger { color: var(--color-danger) !important; }

/* ==================== مرکز یکپارچه شاخص‌ها و پیشرفت اهداف ==================== */
.analytics-hub {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  margin-bottom: 24px;
  align-items: stretch;
}

.progress-feature-card {
  background: linear-gradient(135deg, rgba(25, 30, 41, 0.82) 0%, rgba(21, 25, 35, 0.92) 100%);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.progress-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.progress-feature-card:hover {
  border-color: rgba(146, 120, 255, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(146, 120, 255, 0.15);
  transform: translateY(-2px);
}

.progress-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.progress-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(146, 120, 255, 0.15);
  border: 1px solid rgba(146, 120, 255, 0.3);
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(146, 120, 255, 0.2);
}

.progress-icon-badge svg {
  width: 20px;
  height: 20px;
}

.progress-title-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.progress-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.progress-ratio-badge {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.progress-rate-wrapper {
  display: flex;
  align-items: baseline;
}

.progress-rate-text {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary-light);
  text-shadow: 0 0 16px rgba(146, 120, 255, 0.45);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  line-height: 1;
}

.progress-bar-track {
  width: 100%;
  height: 12px;
  background-color: var(--bg-input);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  position: relative;
}

.progress-bar-fill {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
  box-shadow: 0 0 16px rgba(146, 120, 255, 0.5);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-card-footer {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-pills-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.prog-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-glass);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.prog-pill strong {
  color: var(--text-primary);
  font-weight: 700;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.prog-pill-completed .pill-dot {
  background-color: var(--color-success);
  box-shadow: 0 0 8px var(--color-success);
}

.prog-pill-progress .pill-dot {
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

.prog-pill-pending .pill-dot {
  background-color: var(--text-muted);
}

.prog-pill-overdue .pill-dot {
  background-color: var(--color-danger);
  box-shadow: 0 0 8px var(--color-danger);
}

/* شبکه ۶ کارت شاخص آماری درون هاب تحلیلی */
.analytics-hub .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 0;
}

/* ==================== چیدمان دوقلوی نمودار و مهلت‌ها ==================== */
.dashboard-split-grid {
  display: grid;
  grid-template-columns: 1.6fr 1.1fr;
  gap: 20px;
}

.card {
  background: linear-gradient(135deg, rgba(25, 30, 41, 0.78) 0%, rgba(21, 25, 35, 0.85) 100%);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-glass);
  transition: all var(--transition-fast);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

/* کارت نمودار هفتگی */
.chart-wrapper {
  width: 100%;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weekly-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* انیمیشن رشد ملایم میله‌های نمودار */
@keyframes barGrow {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  to {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

.chart-bar {
  animation: barGrow 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: all var(--transition-fast);
}

.chart-col-group:hover .chart-bar,
.chart-col-group:focus-visible .chart-bar {
  filter: brightness(1.25) drop-shadow(0 0 8px rgba(146, 120, 255, 0.5));
  cursor: pointer;
}

/* لیست نزدیک‌ترین مهلت‌ها */
.nearest-deadlines-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deadline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.deadline-item:hover {
  border-color: rgba(146, 120, 255, 0.3);
  background: rgba(255, 255, 255, 0.045);
  transform: translateX(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.deadline-main {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.category-indicator {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.deadline-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deadline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.deadline-badge {
  font-size: 0.75rem;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.deadline-badge-overdue {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: var(--color-danger-border);
}

.deadline-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==================== نوار ابزار و فیلترها (My Tasks) ==================== */
.toolbar-card {
  background: linear-gradient(135deg, rgba(25, 30, 41, 0.75) 0%, rgba(21, 25, 35, 0.85) 100%);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-glass);
}

/* ==================== فیلتر سریع بر اساس رنگ اولویت (Priority Chips Toolbar) ==================== */
.priority-chips-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chips-bar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.priority-chips-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.priority-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.priority-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.chip-dot-all { background-color: var(--text-muted); }
.chip-dot-urgent { background-color: #F87171; }
.chip-dot-high { background-color: #FBBF24; }
.chip-dot-medium { background-color: #65B7FF; }
.chip-dot-normal { background-color: #9CA3AF; }

/* وضعیت فعال (Active) کپسول‌ها با هایلایت نوری و بردر رنگی */
.priority-chip.active {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.priority-chip-urgent.active {
  background: rgba(255, 100, 124, 0.18);
  border-color: #FF647C;
  color: #FFA2B0;
  box-shadow: 0 0 16px rgba(255, 100, 124, 0.35);
}

.priority-chip-high.active {
  background: rgba(255, 199, 106, 0.18);
  border-color: #FFC76A;
  color: #FFE0A3;
  box-shadow: 0 0 16px rgba(255, 199, 106, 0.35);
}

.priority-chip-medium.active {
  background: rgba(101, 183, 255, 0.18);
  border-color: #65B7FF;
  color: #A8D5FF;
  box-shadow: 0 0 16px rgba(101, 183, 255, 0.35);
}

.priority-chip-normal.active {
  background: rgba(156, 163, 175, 0.18);
  border-color: #9CA3AF;
  color: #E5E7EB;
  box-shadow: 0 0 14px rgba(156, 163, 175, 0.25);
}

.filters-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-select {
  padding: 7px 14px;
  font-size: 0.88rem;
  min-width: 135px;
}

.filter-actions {
  margin-inline-start: auto;
}

.active-tag-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background-color: var(--color-primary-subtle);
  border: 1px solid rgba(146, 120, 255, 0.28);
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--color-primary-light);
}

.btn-clear-tag {
  background: none;
  border: none;
  color: var(--color-danger);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-clear-tag:hover {
  background: var(--color-danger-bg);
}

.list-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.tasks-count-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==================== کارت وظیفه (Task Card) ==================== */
.tasks-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-card {
  background: linear-gradient(135deg, rgba(25, 30, 41, 0.8) 0%, rgba(21, 25, 35, 0.85) 100%);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all var(--transition-fast);
  position: relative;
}

.task-card:hover {
  background: linear-gradient(135deg, rgba(32, 38, 52, 0.85) 0%, rgba(24, 29, 40, 0.9) 100%);
  border-color: rgba(146, 120, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(146, 120, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* وظایف سنجاق‌شده (Pinned) */
.task-card-pinned {
  border-inline-start: 4px solid var(--color-primary);
  background: linear-gradient(135deg, rgba(32, 36, 52, 0.88) 0%, rgba(22, 26, 38, 0.88) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), -2px 0 14px rgba(146, 120, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* وظایف تکمیل‌شده (Completed) */
.task-card-completed {
  opacity: 0.65;
  background: linear-gradient(135deg, rgba(20, 24, 32, 0.7) 0%, rgba(16, 20, 28, 0.75) 100%);
}

.task-card-completed:hover {
  opacity: 0.9;
}

.task-card-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* چک‌باکس تکمیل کار */
.task-checkbox {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.task-checkbox:hover {
  border-color: var(--color-success);
  background: var(--color-success-bg);
  box-shadow: 0 0 10px rgba(69, 217, 160, 0.3);
}

.task-checkbox.checked {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: #0B0D12;
  box-shadow: 0 0 12px rgba(69, 217, 160, 0.45);
}

.task-checkbox svg {
  width: 15px;
  height: 15px;
}

/* جزئیات کارت */
.task-details {
  flex-grow: 1;
  min-width: 0;
}

.task-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.task-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

.task-title.title-completed {
  text-decoration: line-through;
  color: var(--text-muted);
}

.task-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.task-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 4px;
  margin-bottom: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ==================== زیروظیفه‌ها و میکرو-پیشرفت روی کارت ==================== */
.task-subtasks-section {
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  background: rgba(11, 13, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
}

.task-subtasks-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.subtasks-ratio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary-light);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.subtasks-icon {
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.micro-progress-track {
  flex-grow: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.micro-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.btn-toggle-subtasks {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-toggle-subtasks:hover {
  color: var(--text-primary);
}

.chevron-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.chevron-icon.rotated {
  transform: rotate(-180deg);
}

.task-subtasks-checklist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}

.task-subtasks-checklist.collapsed {
  display: none;
}

.subtask-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.subtask-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.subtask-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.subtask-checkbox:hover {
  border-color: var(--color-success);
  background: var(--color-success-bg);
}

.subtask-checkbox.checked {
  background-color: var(--color-success);
  border-color: var(--color-success);
  color: #0B0D12;
}

.subtask-checkbox svg {
  width: 12px;
  height: 12px;
}

.subtask-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  word-break: break-word;
  transition: all var(--transition-fast);
}

.subtask-completed .subtask-title {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.75;
}

.task-footer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.task-due-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.due-icon {
  width: 15px;
  height: 15px;
}

.due-badge-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: var(--radius-full);
  background-color: var(--bg-input);
  border: 1px solid var(--border-glass);
}

.badge-due-overdue {
  color: var(--color-danger);
}
.badge-due-overdue .due-badge-pill {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: var(--color-danger-border);
  font-weight: 700;
}

.badge-due-today {
  color: var(--color-warning);
}
.badge-due-today .due-badge-pill {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
  border-color: var(--color-warning-border);
  font-weight: 700;
}

.task-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 2px 10px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag-chip:hover {
  background-color: var(--color-primary-subtle);
  color: var(--color-primary-light);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

/* عملیات سریع کارت */
.task-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-pinned {
  color: var(--color-primary-light) !important;
  filter: drop-shadow(0 0 6px var(--color-primary));
}

/* نشان‌ها (Badges) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge-category {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.category-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 6px currentColor;
}

.badge-priority-normal {
  background: rgba(146, 156, 175, 0.12);
  color: #929CAF;
  border-color: rgba(146, 156, 175, 0.22);
}
.badge-priority-medium {
  background: rgba(101, 183, 255, 0.12);
  color: #65B7FF;
  border-color: rgba(101, 183, 255, 0.28);
}
.badge-priority-high {
  background: rgba(255, 199, 106, 0.12);
  color: #FFC76A;
  border-color: rgba(255, 199, 106, 0.28);
}
.badge-priority-urgent {
  background: rgba(255, 100, 124, 0.12);
  color: #FF647C;
  border-color: rgba(255, 100, 124, 0.28);
}

.badge-status-pending {
  background: rgba(146, 156, 175, 0.12);
  color: #929CAF;
  border-color: rgba(146, 156, 175, 0.2);
}
.badge-status-progress {
  background: rgba(101, 183, 255, 0.12);
  color: #65B7FF;
  border-color: rgba(101, 183, 255, 0.25);
}
.badge-status-completed {
  background: rgba(69, 217, 160, 0.12);
  color: #45D9A0;
  border-color: rgba(69, 217, 160, 0.25);
}

/* ==================== وضعیت خالی (Empty State) ==================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 65px 20px;
  background: linear-gradient(135deg, rgba(25, 30, 41, 0.6) 0%, rgba(21, 25, 35, 0.7) 100%);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  margin-block: 20px;
}

.empty-state-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background: rgba(146, 120, 255, 0.1);
  color: var(--color-primary-light);
  border: 1px solid rgba(146, 120, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 0 20px rgba(146, 120, 255, 0.12);
}

.empty-state-icon svg {
  width: 32px;
  height: 32px;
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 450px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.empty-state-compact {
  padding: 24px;
  text-align: center;
}

/* هشدارهای اختصاصی نمای امروز */
.overdue-alert-section {
  margin-bottom: 24px;
}

.section-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
}

.section-notice-danger {
  background: linear-gradient(135deg, rgba(255, 100, 124, 0.12) 0%, rgba(255, 100, 124, 0.05) 100%);
  border: 1px solid var(--color-danger-border);
  color: var(--color-danger);
}

.notice-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.section-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

/* ==================== شبکه کارت‌های دسته‌بندی ==================== */
.categories-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.category-card {
  background: linear-gradient(135deg, rgba(25, 30, 41, 0.75) 0%, rgba(21, 25, 35, 0.85) 100%);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  background: linear-gradient(135deg, rgba(32, 38, 52, 0.85) 0%, rgba(24, 29, 40, 0.9) 100%);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px rgba(146, 120, 255, 0.12);
}

.category-card-selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-glow), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.category-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.category-card-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px currentColor;
}

.category-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  flex-grow: 1;
}

.category-card-count {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.category-selected-header {
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 700;
}

/* ==================== صفحه تنظیمات ==================== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.settings-card {
  display: flex;
  flex-direction: column;
}

.storage-info-box {
  background: rgba(18, 22, 32, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.storage-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  padding-block: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.storage-info-row:last-child {
  border-bottom: none;
}

/* سوییچ شکیل تنظیمات صوتی و تعاملی */
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 16px;
  background: rgba(18, 22, 32, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.toggle-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.custom-switch-label {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.custom-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.custom-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border-glass);
  transition: var(--transition-fast);
  border-radius: 24px;
}

.custom-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  inset-inline-start: 2px;
  bottom: 2px;
  background-color: #FFFFFF;
  transition: var(--transition-fast);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.custom-switch-input:checked + .custom-switch-slider {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.custom-switch-input:checked + .custom-switch-slider:before {
  transform: translateX(-22px);
}

.settings-actions-group {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.danger-card {
  border-color: rgba(255, 100, 124, 0.35);
}

.about-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ==================== دکمه‌ها و عناصر تعاملی ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn svg,
.btn-icon-svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-sm svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0;
}

/* نمایش یکدست و بهینه ارقام انگلیسی */
.stat-value,
.progress-rate-text,
.nav-badge,
.cat-badge,
.due-badge-pill,
.due-time,
.tasks-count-label,
.prog-pill strong,
.category-card-count {
  font-variant-numeric: tabular-nums;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #7B60FF 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(146, 120, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
  box-shadow: 0 6px 22px rgba(146, 120, 255, 0.45), 0 0 16px rgba(146, 120, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--color-danger) 0%, #E04860 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(255, 100, 124, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #FF7A90 0%, var(--color-danger) 100%);
  box-shadow: 0 6px 20px rgba(255, 100, 124, 0.45);
  transform: translateY(-1px);
}

.btn-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glass);
  color: var(--text-primary);
  transform: scale(1.06);
}

.btn-icon-danger:hover {
  background-color: var(--color-danger-bg);
  border-color: var(--color-danger-border);
  color: var(--color-danger);
}

.btn-icon svg {
  width: 17px;
  height: 17px;
}

/* ==================== فرم‌ها و ورودی‌ها ==================== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.required-label::after {
  content: ' *';
  color: var(--color-danger);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow), 0 0 16px rgba(146, 120, 255, 0.15);
  outline: none;
  background-color: #151923;
}

/* پشتیبانی استایل تیره در گزینه‎‌های Select */
.form-select option {
  background-color: #151923;
  color: #F1F3FA;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.tag-input-row {
  display: flex;
  gap: 8px;
}

.tag-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.form-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-primary-subtle);
  color: var(--color-primary-light);
  border: 1px solid rgba(146, 120, 255, 0.35);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.8rem;
}

.btn-remove-tag {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
}

/* ==================== فرم زیروظیفه‌ها و گام‌های اجرایی در مودال ==================== */
.subtasks-form-group {
  margin-top: 6px;
}

.subtask-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.form-subtasks-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding: 4px 2px;
}

.empty-subtasks-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  text-align: center;
}

.form-subtask-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.form-subtask-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.subtask-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-primary-subtle);
  color: var(--color-primary-light);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.subtask-item-title {
  font-size: 0.88rem;
  color: var(--text-primary);
  flex-grow: 1;
  word-break: break-word;
}

.btn-remove-subtask {
  background: none;
  border: none;
  color: var(--color-danger);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: all var(--transition-fast);
}

.btn-remove-subtask:hover {
  background: var(--color-danger-bg);
}

.custom-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-color-picker {
  width: 46px;
  height: 40px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  cursor: pointer;
}

/* ==================== پنجره‌های مودال (Modals & Unified Creation Hub) ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-dialog {
  position: relative;
  z-index: 2;
  background: #151923;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 32px);
  max-height: min(90vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* جلوگیری قطعی از بیرون‌زدگی فرم و دکمه‌ها در هر میزان زوم */
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: scale(0.96);
  transition: transform var(--transition-normal);
  margin: auto;
}

.modal-active .modal-dialog {
  transform: scale(1);
}

.modal-dialog-lg {
  max-width: 660px;
}

/* ساختار فلکس‌باکس فرم مودال جهت نگه‌داشتن همیشگی فوتر در دید کاربر */
.modal-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-subtle);
  background: #151923;
  flex-shrink: 0;
  z-index: 3;
}

.modal-header-unified {
  gap: 12px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* سوئیچر تب‌های مودال یکپارچه (Unified Creation Switcher) */
.unified-tabs-wrapper {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 4px;
}

.unified-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.unified-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.unified-tab-btn.active {
  background: linear-gradient(135deg, rgba(146, 120, 255, 0.28) 0%, rgba(101, 183, 255, 0.2) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(177, 160, 255, 0.35);
  box-shadow: 0 2px 10px rgba(146, 120, 255, 0.25);
}

.unified-tab-btn .tab-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(146, 120, 255, 0.35) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(146, 120, 255, 0.3);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(146, 120, 255, 0.55);
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: #12151E;
  flex-shrink: 0;
  z-index: 3;
}

.confirm-message {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==================== استایل‌های بخش تکرار کار (Recurrence) ==================== */
.recurrence-form-group {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
}

.recurrence-form-group .form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.badge-recurrence-hint {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(146, 120, 255, 0.12);
  border: 1px solid rgba(146, 120, 255, 0.25);
  color: var(--color-primary-light);
}

.recurrence-custom-days-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.custom-days-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.recurrence-days-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recurrence-day-pill {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.recurrence-day-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.recurrence-day-pill.active {
  background: rgba(146, 120, 255, 0.25);
  border-color: rgba(177, 160, 255, 0.5);
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(146, 120, 255, 0.25);
}

/* برچسب الگوی تکرار روی کارت وظیفه */
.badge-recurrence {
  background: rgba(101, 183, 255, 0.12);
  border: 1px solid rgba(101, 183, 255, 0.3);
  color: #93C5FD;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
}

.badge-recurrence-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* چک‌باکس همگام‌سازی دوطرفه بین کار و برنامه هفتگی */
.cross-sync-group {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(101, 183, 255, 0.06);
  border: 1px dashed rgba(101, 183, 255, 0.25);
  border-radius: var(--radius-md);
}

.cross-sync-group .checkbox-text {
  color: #BFDBFE;
  font-weight: 500;
  font-size: 0.88rem;
}

/* ==================== پیام‌های Toast ==================== */
.toast-container {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: rgba(21, 25, 35, 0.9);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-glass);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all var(--transition-fast);
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(24px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.toast-hiding {
  opacity: 0;
  transform: translateX(30px);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-message {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}

.toast-close:hover {
  color: var(--text-primary);
}

.toast-success {
  border-color: rgba(69, 217, 160, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 18px rgba(69, 217, 160, 0.15);
}
.toast-success .toast-icon { color: var(--color-success); }

.toast-error {
  border-color: rgba(255, 100, 124, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 100, 124, 0.15);
}
.toast-error .toast-icon { color: var(--color-danger); }

.toast-warning {
  border-color: rgba(255, 199, 106, 0.35);
}
.toast-warning .toast-icon { color: var(--color-warning); }

.toast-info {
  border-color: rgba(146, 120, 255, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 18px rgba(146, 120, 255, 0.15);
}
.toast-info .toast-icon { color: var(--color-primary-light); }

/* ==========================================================================
   سامانه برنامه هفتگی و زمان‌بندی دانشگاه (University Weekly Schedule System)
   طراحی شده با استانداردهای Premium Dark Glassmorphism
   ========================================================================== */

/* نوار ابزار بالای برنامه هفتگی */
.schedule-toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

/* نوار فیلتر کپسولی حوزه‌های فعالیت */
.schedule-category-chips-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.schedule-category-chips-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.schedule-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.schedule-cat-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.16);
}

.schedule-cat-chip.active {
  background: rgba(255, 255, 255, 0.09);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
}

.schedule-cat-chip-university.active {
  background: rgba(139, 124, 255, 0.18);
  color: #B1A0FF;
  border-color: rgba(139, 124, 255, 0.5);
  box-shadow: 0 0 16px rgba(139, 124, 255, 0.25);
}

.schedule-cat-chip-work.active {
  background: rgba(56, 189, 248, 0.18);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.schedule-cat-chip-personal.active {
  background: rgba(244, 114, 182, 0.18);
  color: #F472B6;
  border-color: rgba(244, 114, 182, 0.5);
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.25);
}

.schedule-cat-chip-fitness.active {
  background: rgba(16, 185, 129, 0.18);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.schedule-cat-chip-routine.active {
  background: rgba(251, 191, 36, 0.18);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
}

.chip-dot-university { background-color: #8B7CFF; box-shadow: 0 0 8px #8B7CFF; }
.chip-dot-work { background-color: #38BDF8; box-shadow: 0 0 8px #38BDF8; }
.chip-dot-personal { background-color: #F472B6; box-shadow: 0 0 8px #F472B6; }
.chip-dot-fitness { background-color: #10B981; box-shadow: 0 0 8px #10B981; }
.chip-dot-routine { background-color: #FBBF24; box-shadow: 0 0 8px #FBBF24; }

.cat-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.schedule-toolbar-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.schedule-toolbar-start {
  display: flex;
  align-items: center;
  gap: 12px;
}

.schedule-view-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
}

.btn-switch-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-switch-tab .switch-icon {
  width: 16px;
  height: 16px;
}

.btn-switch-tab:hover {
  color: var(--text-primary);
}

.btn-switch-tab.active {
  background: var(--color-primary-subtle);
  color: var(--color-primary-light);
  border: 1px solid rgba(146, 120, 255, 0.4);
  box-shadow: 0 0 14px rgba(146, 120, 255, 0.18);
}

.schedule-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* بنر وضعیت امروز برنامه هفتگی */
.schedule-today-banner {
  margin-bottom: 20px;
}

.today-banner-card {
  position: relative;
  overflow: hidden;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(27, 32, 45, 0.95) 0%, rgba(18, 22, 34, 0.98) 100%);
  border: 1px solid rgba(146, 120, 255, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.banner-card-live {
  border-color: rgba(69, 217, 160, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 28px rgba(69, 217, 160, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.banner-card-upcoming {
  border-color: rgba(101, 183, 255, 0.35);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(101, 183, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.today-banner-glow {
  position: absolute;
  top: -50px;
  left: 20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(146, 120, 255, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.today-banner-content {
  position: relative;
  z-index: 2;
}

.today-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.today-banner-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.today-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(146, 120, 255, 0.15);
  border: 1px solid rgba(146, 120, 255, 0.35);
  color: var(--color-primary-light);
  font-size: 0.82rem;
  font-weight: 600;
}

.today-chip-live {
  background: rgba(69, 217, 160, 0.16);
  border-color: rgba(69, 217, 160, 0.45);
  color: var(--color-success);
}

.today-chip-next {
  background: rgba(101, 183, 255, 0.16);
  border-color: rgba(101, 183, 255, 0.45);
  color: var(--color-accent);
}

.today-chip-off {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glass);
  color: var(--text-muted);
}

.chip-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
  animation: pulseDot 1.8s infinite;
}

.pulse-accent {
  background-color: var(--color-accent) !important;
  box-shadow: 0 0 10px var(--color-accent) !important;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.today-classes-count {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(101, 183, 255, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(101, 183, 255, 0.25);
  font-variant-numeric: tabular-nums;
}

.live-event-main-info {
  margin-bottom: 14px;
}

.today-banner-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.45;
}

.live-event-sub-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.live-time-range {
  color: var(--color-accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ==================== جعبه شمارشگر معکوس زنده در بنر ==================== */
.banner-countdown-box {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  margin-bottom: 16px;
}

.countdown-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.countdown-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.countdown-timer-badge {
  font-size: 1.25rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--color-success);
  background: rgba(69, 217, 160, 0.14);
  border: 1px solid rgba(69, 217, 160, 0.35);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 16px rgba(69, 217, 160, 0.22);
}

.countdown-timer-accent {
  color: var(--color-accent);
  background: rgba(101, 183, 255, 0.14);
  border-color: rgba(101, 183, 255, 0.35);
  box-shadow: 0 0 16px rgba(101, 183, 255, 0.22);
}

.countdown-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0 6px;
}

.countdown-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #45D9A0 0%, #65B7FF 50%, #9278FF 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
  box-shadow: 0 0 12px rgba(69, 217, 160, 0.4);
}

.countdown-progress-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.countdown-sub-hint {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.future-event-pointer {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.pointer-badge {
  color: var(--color-primary-light);
  font-weight: 600;
}

.pointer-title {
  color: var(--text-primary);
  font-weight: 700;
}

.pointer-time {
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.today-banner-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* تایم‌لاین مینیاتوری کلاس‌های امروز در بنر */
.today-classes-timeline-mini {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.timeline-mini-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.timeline-mini-item.active-class {
  background: rgba(146, 120, 255, 0.15);
  border-color: var(--color-primary);
  box-shadow: 0 0 14px rgba(146, 120, 255, 0.25);
}

.timeline-time {
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.timeline-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.timeline-title {
  font-weight: 600;
}

.timeline-instructor {
  font-size: 0.78rem;
}

/* شبکه ۴ شاخص کلیدی برنامه هفتگی */
.schedule-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat-unit {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 4px;
}

/* تب‌های روزهای هفته (Day Pills) */
.schedule-day-tabs-wrapper {
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.schedule-day-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.schedule-day-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.schedule-day-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.schedule-day-tab.active {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary-light);
  box-shadow: 0 0 16px var(--color-primary-glow);
}

.schedule-day-tab.is-today-tab {
  border-color: rgba(69, 217, 160, 0.4);
}

.today-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--color-success);
  box-shadow: 0 0 6px var(--color-success);
}

.day-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.schedule-day-tab.active .day-tab-count {
  background: rgba(146, 120, 255, 0.35);
  color: #FFFFFF;
}

/* گروه‌بندی روزانه کلاس‌ها در نمای کارتی */
.schedule-day-section {
  margin-bottom: 28px;
}

.schedule-day-section-today {
  padding: 16px;
  background: rgba(146, 120, 255, 0.03);
  border: 1px dashed rgba(146, 120, 255, 0.25);
  border-radius: var(--radius-xl);
}

.schedule-day-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.day-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.day-header-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.day-header-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.schedule-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

/* کارت تکی کلاس درسی (Schedule Card) */
.schedule-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-right: 3.5px solid var(--class-accent, var(--color-primary));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
}

.schedule-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(146, 120, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.schedule-card-current {
  border-color: var(--color-primary);
  box-shadow: 0 0 24px rgba(146, 120, 255, 0.22);
  background: linear-gradient(135deg, rgba(25, 30, 41, 0.98) 0%, rgba(26, 21, 46, 0.98) 100%);
}

.schedule-card-next {
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(101, 183, 255, 0.16);
}

.schedule-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.schedule-time-range-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-time-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.time-range-icon {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.schedule-duration-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 7px;
  border-radius: var(--radius-full);
}

.schedule-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.schedule-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
}

.status-chip-current {
  background: rgba(69, 217, 160, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(69, 217, 160, 0.35);
}

.status-chip-next {
  background: rgba(101, 183, 255, 0.15);
  color: var(--color-accent);
  border: 1px solid rgba(101, 183, 255, 0.35);
}

.schedule-card-body {
  margin-bottom: 16px;
}

.schedule-course-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.45;
}

.course-color-bar {
  display: inline-block;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 3px;
}

.schedule-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.schedule-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.schedule-meta-item .meta-icon {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-light);
  flex-shrink: 0;
}

.schedule-meta-item .meta-icon svg {
  width: 14px;
  height: 14px;
}

.meta-label {
  color: var(--text-muted);
}

.instructor-name {
  color: var(--text-primary);
  font-weight: 600;
}

.schedule-notes-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  margin-top: 8px;
}

.schedule-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-primary-glass {
  background: rgba(146, 120, 255, 0.12);
  color: var(--color-primary-light);
  border: 1px solid rgba(146, 120, 255, 0.3);
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 6px 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary-glass:hover {
  background: rgba(146, 120, 255, 0.22);
  border-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 0 14px rgba(146, 120, 255, 0.25);
}

.schedule-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* بج‌های انواع کلاس و رویداد */
.badge-type-lab {
  background: rgba(146, 120, 255, 0.14);
  color: #B1A0FF;
  border-color: rgba(146, 120, 255, 0.3);
}

.badge-type-theory {
  background: rgba(101, 183, 255, 0.14);
  color: #65B7FF;
  border-color: rgba(101, 183, 255, 0.3);
}

.badge-type-general {
  background: rgba(69, 217, 160, 0.14);
  color: #45D9A0;
  border-color: rgba(69, 217, 160, 0.3);
}

.badge-type-meeting {
  background: rgba(56, 189, 248, 0.14);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.3);
}

.badge-type-sport {
  background: rgba(16, 185, 129, 0.14);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-type-habit {
  background: rgba(251, 191, 36, 0.14);
  color: #FBBF24;
  border-color: rgba(251, 191, 36, 0.3);
}

.badge-type-leisure {
  background: rgba(244, 114, 182, 0.14);
  color: #F472B6;
  border-color: rgba(244, 114, 182, 0.3);
}

/* بج‌های حوزه‌های فراگیر زمان‌بندی */
.badge-cat-university {
  background: rgba(139, 124, 255, 0.15);
  color: #B1A0FF;
  border: 1px solid rgba(139, 124, 255, 0.35);
}

.badge-cat-work {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-cat-personal {
  background: rgba(244, 114, 182, 0.15);
  color: #F472B6;
  border: 1px solid rgba(244, 114, 182, 0.35);
}

.badge-cat-fitness {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-cat-routine {
  background: rgba(251, 191, 36, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

/* ==================== جدول ماتریسی هفتگی (Timetable Matrix Grid) ==================== */
.timetable-matrix-container {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  scrollbar-width: thin;
}

.timetable-matrix-grid {
  display: grid;
  grid-template-columns: 120px repeat(6, minmax(160px, 1fr));
  gap: 8px;
  min-width: 1080px;
}

.matrix-header-cell {
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.matrix-header-today {
  background: rgba(146, 120, 255, 0.12);
  border-color: var(--color-primary);
  color: var(--color-primary-light);
}

.matrix-today-chip {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #FFFFFF;
}

.matrix-time-cell {
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.matrix-slot-cell {
  min-height: 85px;
  padding: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.matrix-slot-filled {
  background: rgba(255, 255, 255, 0.025);
  border-style: solid;
  border-color: var(--border-glass);
}

.matrix-slot-empty {
  align-items: center;
  justify-content: center;
}

.matrix-empty-dash {
  color: rgba(255, 255, 255, 0.1);
  font-size: 1.2rem;
}

.matrix-course-block {
  padding: 8px 10px;
  background: rgba(25, 30, 41, 0.95);
  border-right: 3px solid var(--block-color, var(--color-primary));
  border: 1px solid var(--border-glass);
  border-right-width: 3px;
  border-right-color: var(--block-color, var(--color-primary));
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.matrix-course-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  background: rgba(30, 36, 50, 0.98);
}

.block-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.block-title {
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.block-instructor {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==================== ویجت برنامه دانشگاه در داشبورد اصلی (Overview Widget) ==================== */
.overview-schedule-card {
  margin-top: 24px;
}

.overview-schedule-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.overview-schedule-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(146, 120, 255, 0.12);
  color: var(--color-primary-light);
  border: 1px solid rgba(146, 120, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.overview-schedule-icon-badge svg {
  width: 20px;
  height: 20px;
}

.overview-schedule-actions .btn-arrow-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.overview-schedule-content {
  margin-top: 14px;
}

.overview-today-classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.overview-class-card {
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-right: 3px solid var(--class-color, var(--color-primary));
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all var(--transition-fast);
}

.overview-class-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-sm);
}

.overview-class-item-current {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(25, 30, 41, 0.95) 0%, rgba(27, 22, 48, 0.95) 100%);
  box-shadow: 0 0 18px rgba(146, 120, 255, 0.2);
}

.overview-class-item-next {
  border-color: var(--color-accent);
}

.overview-class-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.overview-class-time-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.overview-class-time {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.overview-class-duration {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.overview-class-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

.overview-class-instructor {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.overview-class-instructor .instructor-svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary-light);
}

.overview-class-actions {
  margin-top: 4px;
}

.overview-schedule-off-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.off-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(146, 120, 255, 0.1);
  color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.off-banner-icon svg {
  width: 24px;
  height: 24px;
}

.off-banner-info {
  flex-grow: 1;
}

.off-banner-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.off-banner-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   ۱. مینی‌تقویم ماهانه شمسی خالص (Pure Vanilla Jalali Mini-Calendar)
   ========================================================================== */
.jalali-calendar-card {
  margin-top: 24px;
}

.calendar-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calendar-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(146, 120, 255, 0.12);
  color: var(--color-primary-light);
  border: 1px solid rgba(146, 120, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calendar-icon-badge svg {
  width: 20px;
  height: 20px;
}

.calendar-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jalali-calendar-body {
  margin-top: 18px;
}

.jalali-weekdays-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
}

.jalali-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.cal-day-cell {
  position: relative;
  min-height: 52px;
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.cal-day-cell:hover {
  background: rgba(146, 120, 255, 0.09);
  border-color: rgba(146, 120, 255, 0.35);
  transform: translateY(-2px);
}

.cal-day-cell.is-other-month {
  opacity: 0.25;
  cursor: default;
}

.cal-day-cell.is-other-month:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  transform: none;
}

.cal-day-cell.is-today {
  border-color: var(--color-primary);
  background: rgba(146, 120, 255, 0.16);
  box-shadow: 0 0 14px rgba(146, 120, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cal-day-cell.is-today .cal-day-num {
  color: #FFFFFF;
  font-weight: 900;
}

.cal-day-cell.is-selected {
  border-color: var(--color-accent);
  background: rgba(101, 183, 255, 0.18);
  box-shadow: 0 0 16px rgba(101, 183, 255, 0.3);
}

.cal-day-num {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.cal-day-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 6px;
}

.cal-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
}

.cal-dot-task {
  background-color: var(--color-primary-light);
  box-shadow: 0 0 6px var(--color-primary);
}

.cal-dot-schedule {
  background-color: var(--color-accent);
  box-shadow: 0 0 6px var(--color-accent);
}

.calendar-selected-day-details {
  margin-top: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cal-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.cal-details-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cal-details-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cal-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(21, 25, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

/* نشانگر تاریخ شمسی در هدر */
.header-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin-inline-end: 6px;
}

.header-date-icon {
  width: 14px;
  height: 14px;
  color: var(--color-primary-light);
}

/* ==========================================================================
   ۲. حالت تمرکز و تایمر پومودورو شیشه‌ای (Glassmorphism Pomodoro Timer)
   ========================================================================== */
.modal-pomodoro-dialog {
  max-width: 520px;
  width: 100%;
}

.pomodoro-modal-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pomodoro-badge-icon {
  font-size: 1.4rem;
}

.pomodoro-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 10px 0 20px;
}

.pomodoro-mode-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  flex-wrap: wrap;
  justify-content: center;
}

.pomodoro-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pomodoro-pill:hover {
  color: var(--text-primary);
}

.pomodoro-pill.active {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 0 14px var(--color-primary-glow);
}

.pomodoro-attached-task-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(146, 120, 255, 0.12);
  border: 1px solid rgba(146, 120, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  max-width: 90%;
  box-sizing: border-box;
}

.attached-task-label {
  color: var(--color-primary-light);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.attached-task-title {
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-detach-task {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.btn-detach-task:hover {
  color: var(--color-danger);
}

.pomodoro-timer-visual {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pomodoro-svg-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pomodoro-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 10;
}

.pomodoro-ring-progress {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 753.98; /* 2 * PI * 120 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s ease;
  filter: drop-shadow(0 0 8px rgba(146, 120, 255, 0.45));
}

.pomodoro-center-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pomodoro-time-display {
  font-size: 3.4rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(146, 120, 255, 0.5);
  line-height: 1;
}

.pomodoro-mode-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pomodoro-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pomodoro-btn-main {
  min-width: 150px;
  justify-content: center;
  padding: 12px 24px;
  font-size: 1rem;
  box-shadow: 0 0 20px var(--color-primary-glow);
}

.pomodoro-btn-sec {
  padding: 10px 18px;
}

.pomodoro-footer-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  justify-content: center;
}

.pomodoro-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pomodoro-stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-light);
  font-variant-numeric: tabular-nums;
}

.pomodoro-stat-title {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.header-pomodoro-btn {
  margin-inline-end: 8px;
}

.btn-task-pomodoro {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 1rem;
}

.btn-task-pomodoro:hover {
  color: var(--color-primary-light);
  background: var(--color-primary-subtle);
  transform: scale(1.1);
}

/* ==========================================================================
   ۳. کشیدن و رها کردن بومی وظایف (Native HTML5 Drag & Drop)
   ========================================================================== */
.task-card[draggable="true"] {
  cursor: grab;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s ease,
              opacity 0.2s ease;
}

.task-card[draggable="true"]:active {
  cursor: grabbing;
}

.task-card.is-dragging {
  opacity: 0.45;
  transform: scale(0.98);
  border-color: var(--color-primary) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(146, 120, 255, 0.4) !important;
}

.task-card.drop-target-above {
  border-top: 3px solid var(--color-primary) !important;
  box-shadow: 0 -4px 14px var(--color-primary-glow);
}

.task-card.drop-target-below {
  border-bottom: 3px solid var(--color-primary) !important;
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.task-drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: grab;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  flex-shrink: 0;
  opacity: 0.45;
}

.task-drag-handle:hover,
.task-card:hover .task-drag-handle {
  opacity: 1;
  color: var(--color-primary-light);
}

.task-drag-handle svg {
  width: 16px;
  height: 16px;
}

/* نشانگر رهاسازی روی دسته‌ها در سایدبار */
.sidebar-cat-item.drop-hover {
  background: rgba(146, 120, 255, 0.22) !important;
  border: 1px dashed var(--color-primary-light) !important;
  box-shadow: 0 0 14px var(--color-primary-glow);
  transform: scale(1.03);
}

.sidebar-nav-item.drop-hover {
  background: rgba(69, 217, 160, 0.2) !important;
  border: 1px dashed var(--color-success) !important;
  box-shadow: 0 0 14px rgba(69, 217, 160, 0.3);
  transform: scale(1.02);
}

.shamsi-date-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--color-primary-light);
  margin-top: 5px;
  font-variant-numeric: tabular-nums;
}

/* ==================== احترام به ترجیح کاهش انیمیشن ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
