/* General Styles */
body {
  font-family: 'Tahoma', sans-serif; /* فونت اصلی */
  margin: 0;
  padding: 0;
  background-color: #f4f7f6; /* رنگ پس‌زمینه ملایم */
  color: #333;
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px; /* حداکثر عرض محتوا */
  margin: 0 auto; /* وسط‌چین کردن */
  padding: 20px;
}

h1, h2, h3 {
  color: #0056b3; /* رنگ آبی تیره برای عنوان‌ها */
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
}

p {
  font-size: 1rem;
  margin-bottom: 15px;
}

/* Dashboard Specific Styles */
.dashboard-page {
  padding-top: 40px;
  padding-bottom: 50px;
}

.dashboard-welcome {
  align-items: center;
  background-color: #ffffff; /* پس‌زمینه سفید برای بخش خوش‌آمدگویی */
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 36px;
  text-align: right;
}

.dashboard-welcome h1 {
  font-size: 2.8rem;
  color: #003f7f; /* آبی تیره‌تر برای خوش‌آمدگویی */
  margin-bottom: 10px;
}

.dashboard-welcome p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 0;
}

.eyebrow {
  color: #007bff;
  display: inline-block;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-grid,
.feature-grid {
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
}

.profile-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.profile-card,
.feature-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

.profile-card h2 {
  color: #003f7f;
  font-size: 1.45rem;
  margin-bottom: 18px;
}

.profile-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.profile-list div {
  align-items: center;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
}

.profile-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-list dt {
  color: #64748b;
  font-weight: 700;
}

.profile-list dd {
  color: #111827;
  margin: 0;
  overflow-wrap: anywhere;
}

.progress-item {
  align-items: center;
  color: #334155;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.progress-bar {
  background: #e5e7eb;
  border-radius: 999px;
  height: 12px;
  margin-bottom: 18px;
  overflow: hidden;
}

.progress-bar span {
  background: linear-gradient(90deg, #007bff, #22c55e);
  display: block;
  height: 100%;
}

.feature-card {
  display: block;
  min-height: 120px;
  text-decoration: none;
}

.feature-card span {
  color: #007bff;
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card strong {
  color: #1f2937;
  display: block;
  font-size: 1.05rem;
  line-height: 1.8;
}

a.feature-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  transition: 0.2s ease;
}

/* Button Styles */
.btn-primary {
  display: inline-block;
  background-color: #007bff; /* آبی استاندارد */
  color: #ffffff !important; /* رنگ متن سفید */
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  background-color: #0056b3; /* آبی تیره‌تر هنگام هاور */
}

.btn-secondary {
  display: inline-block;
  background-color: #6c757d; /* خاکستری */
  color: #ffffff !important;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 10px; /* فاصله با دکمه قبلی */
}

.btn-secondary:hover {
  background-color: #5a6268;
}


/* About Us Page Styles */
.about-us-section {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: justify; /* متن پاراگراف راست‌چین شود */
}

.about-us-section h1 {
  text-align: center; /* عنوان وسط‌چین */
  font-size: 2.2rem;
  color: #003f7f;
}

.about-us-section p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8; /* افزایش فاصله خطوط برای خوانایی بهتر */
  max-width: 900px; /* محدود کردن عرض پاراگراف */
  margin: 0 auto; /* وسط‌چین کردن پاراگراف */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  h1 {
    font-size: 2rem;
  }

  .dashboard-welcome h1 {
    font-size: 2.2rem;
  }

  .dashboard-welcome,
  .profile-list div {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .about-us-section {
    padding: 30px;
  }

  .about-us-section h1 {
    font-size: 1.8rem;
  }

  .about-us-section p {
    font-size: 1rem;
  }
}
