/* assets/css/main.css */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  /* پالت رنگی سامانه مهروماه */
  --primary-color: #4f46e5;       /* بنفش / نیلی اصلی */
  --primary-light: #e0e7ff;
  --mehr-color: #10b981;          /* 🌱 سبز مهر رفتاری */
  --mehr-light: #d1fae5;
  --mah-color: #f59e0b;           /* ⭐ طلایی ماه آموزشی */
  --mah-light: #fef3c7;
  --accent-purple: #8b5cf6;       /* بنفش انگیزشی */
  --accent-purple-light: #ede9fe;
  
  --bg-main: #f8fafc;            /* پس‌زمینه نرم و چشم‌نواز */
  --surface-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  /* سایه‌ها و انحناها */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 25px -3px rgba(0, 0, 0, 0.09);
  
  --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* ظرف اصلی برای نگه‌داشتن ابعاد استاندارد در موبایل/دسکتاپ */
.app-container {
  width: 100%;
  max-width: 480px; /* طراحی موبایل‌محور استاندارد */
  min-height: 100vh;
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 30px;
}

@media (min-width: 768px) {
  .app-container {
    max-width: 720px;
    margin: 20px auto;
    min-height: calc(100vh - 40px);
    border-radius: var(--radius-lg);
  }
}
/* پس‌زمینه مودال خروج */
.logout-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  justify-content: center;
  align-items: center;
}

/* جعبه اصلی مودال */
.logout-box {
  width: 85%;
  max-width: 360px;
  background: white;
  border-radius: 20px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  animation: logoutBoxShow 0.2s ease;
}

.logout-box h3 {
  margin-top: 0;
  color: #5b3cc4;
  font-size: 22px;
}

.logout-box p {
  color: #555;
  margin: 18px 0;
}

.logout-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.logout-actions button {
  border: none;
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
}

.cancel-btn {
  background: #eeeeee;
  color: #444;
}

.confirm-logout-btn {
  background: #e74c3c;
  color: white;
}

.cancel-btn:hover {
  background: #dddddd;
}

.confirm-logout-btn:hover {
  background: #c0392b;
}

@keyframes logoutBoxShow {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
