/* ============================================= */
/*  Bootstrap 5 RTL + فونت فارسی + استایل پایه   */
/* ============================================= */

/* 1) بوت‌استرپ RTL */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.rtl.min.css');

/* 2) فونت فارسی IRANSans */
@font-face {
  font-family: IRANSans;
  src: url('IRANSansWeb.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* 3) استایل پایه صفحات */
body {
  margin: 0;
  padding: 0;
  background: #f2f6fb !important;
  font-family: IRANSans, Tahoma, sans-serif;
  direction: rtl;
  min-height: 100vh;
}

/* 4) Navbar */
.navbar {
  background: #fff !important;
  box-shadow: 0 2px 12px #e2e4e930 !important;
  border-bottom: 1px solid #e4e7eb;
}
.navbar-brand {
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 1.4rem;
  color: #215773 !important;
}
.nav-link {
  color: #374151 !important;
  font-size: 1.08em;
  margin-left: 12px !important;
}
.nav-link.active,
.nav-link:focus,
.nav-link:hover {
  color: #1574be !important;
  font-weight: bold;
}

/* 5) پنل‌های عمومی (کلاس panel) */
.panel {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 40px #dde2e933 !important;
  padding: 2.5rem 2rem !important;
  margin: 2.5rem auto !important;
}
h2, h3, h4 {
  font-family: inherit;
  color: #144358;
}
label {
  margin-bottom: 5px;
  color: #136;
}

/* 6) فرم‌ها */
.form-control,
.form-select {
  border-radius: 8px !important;
  border-color: #e5e7eb !important;
  min-height: 46px;
  font-family: inherit;
}

/* دکمه‌ها */
.btn-primary {
  background: #225aad !important;
  border-color: #225aad !important;
  font-weight: bold;
}
.btn-info,
.btn-success,
.btn-warning,
.btn-secondary {
  font-weight: bold;
  color: #fff !important;
}
.btn-info {
  background: #108fa4 !important;
  border: none;
}
.btn-success {
  background: #16a34a !important;
}
.btn-warning {
  background: #eab308 !important;
  color: #1d232a !important;
}
.btn-secondary {
  background: #575a7b !important;
}
.btn-link {
  color: #215773;
  text-decoration: underline;
  font-weight: normal;
}

/* دکمهٔ آپلود فایل */
input[type="file"]::file-selector-button {
  font-family: inherit;
  background: #e5e7eb;
  border: none;
  border-radius: 8px;
  padding: 5px 12px;
}

/* 7) کارت داشبورد */
.card {
  transition: .2s;
}
.card:hover {
  box-shadow: 0 4px 24px #abdce755 !important;
  border-color: #83c3ff;
}

/* 8) لیست‌ها و alert */
ul, ol {
  padding-right: 20px;
}
.alert {
  border-radius: 10px;
  font-size: 1.02em;
  direction: rtl;
}
.table {
  direction: rtl;
}
::-webkit-input-placeholder {
  font-size: 0.97em;
}
::-moz-placeholder {
  font-size: 0.97em;
}
:-ms-input-placeholder {
  font-size: 0.97em;
}
::placeholder {
  font-size: 0.97em;
}

/* 9) لینک آپلود مدرک */
a.btn-link {
  color: #197bbd !important;
  background: #f3f7fc;
  border-radius: 5px;
  padding: 7px 16px;
  margin-bottom: 10px;
  display: inline-block;
}

/* ============================================= */
/*  استایل صفحات احراز هویت (login / register)  */
/* ============================================= */
body.panel-bg {
  min-height: 100vh;
  background: linear-gradient(120deg, #ebedff 0%, #d8fafe 100%);
  font-family: 'Vazirmatn', Tahoma, sans-serif !important;
}
.panel-auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(102deg, #c8dde3 0%, #fff6db 100%);
}
.panel-auth-card {
  background: rgba(255,255,255, .95);
  border-radius: 24px;
  box-shadow: 0 8px 48px #9de5e829, 0 1.5px 18px #d2c9f333;
  padding: 36px;
  max-width: 380px;
  width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 22px 0;
  animation: glass-appear .87s .2s backwards cubic-bezier(.41, .7, .4, 1.1);
}
.panel-auth-title {
  font-weight: 900;
  font-size: 1.25em;
  color: #35307b;
  text-align: center;
}
.panel-auth-desc {
  font-size: 1em;
  color: #543915;
  text-align: center;
}
.panel-auth-field {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f7faff;
  border-radius: 12px;
  padding: 7px 15px;
  border: 1.2px solid #e7eef7;
  font-size: 1.06em;
  box-shadow: 0 2px 12px #cee4ef0a;
}
.panel-auth-field i {
  color: #5fc1fa;
  opacity: .93;
  font-size: 1.15em;
}
.panel-auth-field input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  padding: 7px 0;
  font-family: inherit;
  color: #2c265b;
  direction: rtl;
}
.panel-auth-btn {
  background: linear-gradient(92deg, #604cff 0%, #4ec8ff 100%);
  color: #fff;
  border: none;
  border-radius: 17px;
  padding: 13px 0;
  font-weight: 700;
  font-size: 1.06em;
  box-shadow: 0 6px 18px #4edbfa39;
  transition: filter .14s, transform .13s;
}
.panel-auth-btn:hover {
  filter: brightness(1.16) drop-shadow(0 8px 26px #baedff3c);
  transform: scale(1.04);
}
.panel-auth-footer {
  margin-top: 17px;
  text-align: center;
  font-size: .97em;
}
.panel-auth-footer a {
  color: #6388ec;
  text-decoration: none;
}
.panel-auth-footer a:hover {
  text-decoration: underline;
}

/* ============================================= */
/*  داشبورد + سایدبار (سایدبار گرادیانت آبی)    */
/* ============================================= */
.user-dashboard-wrap {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

/* ← اینجا گرادیانت آبی برای همه نقش‌ها */
.user-sidebar {
  min-width: 210px;
  background: linear-gradient(129deg, #5948cb 0%, #3cc0ec 100%) !important;
  color: #fff !important;
  border-top-left-radius: 27px;
  border-bottom-left-radius: 27px;
  padding: 29px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 3px 0 22px #79bef85c !important;
}

/* پروفایل داخل سایدبار */
.sidebar-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin-bottom: 30px;
}
.sidebar-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 16px #59bad729;
}
.sidebar-name {
  font-weight: bold;
  font-size: 1.07em;
}
.sidebar-role {
  font-size: .98em;
  color: #bcd8f9;
}

/* منو */
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 19px;
  width: 100%;
}
/* li خودکار رنگ سفید دارد (به‌خاطر color: #fff در .user-sidebar) */
.sidebar-menu li {
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.08em;
  display: flex;        /* برای کنارِ هم قرار گرفتن آیکون و متن */
  align-items: center;
  gap: 7px;
  transition: background .13s, color .13s;
}
/* همین‌جا اورراید می‌کنیم که <a> داخل سایدبار همیشه سفید باشد */
.sidebar-menu li a {
  color: #fff !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
/* آیکون داخل منو */
.sidebar-menu li a i {
  color: #fff !important;
  font-size: 1.2em;
}
/* حالت hover و active */
.sidebar-menu li:hover,
.sidebar-menu li.active {
  background: rgba(255,255,255,0.2) !important;
}
.sidebar-menu li:hover a,
.sidebar-menu li.active a {
  color: #fff !important;
  font-weight: 700;
}

/* ناحیه اصلی داشبورد – سفید باقی می‌ماند */
.user-dashboard-main {
  flex: 1;
  background: #fff !important;
  border-top-right-radius: 27px;
  border-bottom-right-radius: 27px;
  padding: 39px 33px;
  box-shadow: 0 3px 22px #dde2e933 !important;
  overflow-x: auto;
}

/* متن خوش‌آمدگویی و آمار */
.dashboard-welcome span {
  font-size: 1.06em;
  color: #4030b8;
  font-weight: 700;
}
.dashboard-welcome p {
  color: #756fa0;
  margin-bottom: 22px;
}
.dashboard-stats {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.dashboard-stat-box {
  background: linear-gradient(90deg, #ebf6ff 0%, #f3ecff 100%);
  border-radius: 16px;
  box-shadow: 0 2px 18px #c2eafb15;
  padding: 26px 21px;
  text-align: center;
  min-width: 145px;
  flex: 1 1 145px;
  transition: box-shadow .14s, transform .14s;
}
.dashboard-stat-box i {
  font-size: 2em;
  color: #47cffe;
  margin-bottom: 7px;
  display: block;
}
.stat-value {
  font-size: 1.32em;
  font-weight: bold;
}
.stat-title {
  font-size: .97em;
  color: #4630b9;
  margin-top: 2px;
}

/* ----------- */
/* ریسپانسیو  */
/* ----------- */
@media (max-width: 900px) {
  .user-dashboard-wrap {
    flex-direction: column;
  }
  .user-sidebar,
  .user-dashboard-main {
    border-radius: 27px 27px 0 0;
  }
  .user-sidebar {
    min-width: 100%;
    flex-direction: row;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  .dashboard-stats {
    flex-direction: column;
    gap: 13px;
  }
  .user-dashboard-main {
    padding: 13vw 3vw;
  }
}

/* ------------ */
/* ریسپانسیو اضافه برای موبایل (همه بخش‌ها)  */
/* ------------ */
@media (max-width: 600px) {
  .navbar-brand {
    font-size: 1.07rem;
    letter-spacing: 0.5px;
  }
  .nav-link {
    font-size: 0.95em;
    margin-left: 6px !important;
  }
  .panel {
    padding: 1.4rem 0.8rem !important;
    border-radius: 10px !important;
    margin: 1.2rem 0.5rem !important;
  }
  .panel-auth-card {
    padding: 17px;
    border-radius: 13px;
    max-width: 99vw;
    gap: 13px 0;
  }
  .user-sidebar {
    padding: 11px 2px;
    border-radius: 0 0 13px 13px;
    min-width: 100%;
    flex-direction: row;
    justify-content: center;
  }
  .sidebar-profile {
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
  }
  .sidebar-avatar {
    width: 46px;
    height: 46px;
  }
  .sidebar-menu {
    gap: 7px;
  }
  .sidebar-menu li {
    padding: 5px 8px;
    font-size: 1.01em;
    border-radius: 7px;
  }
  .dashboard-stat-box {
    padding: 12px 8px;
    min-width: unset;
    font-size: 0.97em;
    border-radius: 10px;
  }
}
/* ------------ */
/* عرض کمتر از 410px (گوشی خیلی کوچک) */
/* ------------ */
@media (max-width: 410px) {
  .navbar-brand {
    font-size: .95rem;
    letter-spacing: 0.1px;
  }
  .panel-auth-card, .panel {
    padding: 0.5rem 0.2rem !important;
    border-radius: 7px !important;
  }
}
 
/* انیمیشن glass-appear برای کارت احراز هویت */
@keyframes glass-appear {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================= */
/*  بک‌گراند گرادیانت متحرک فقط در صفحات فرم  */
/* ============================================= */
.user-form-bg {
  background: linear-gradient(120deg,
      #9546C4 0%,
      #3A1CFF 50%,
      #00FFFF 100%);
  background-size: 600% 600%;
  animation: gradientBG 12s ease infinite;
}
@keyframes gradientBG {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* انتهای فایل */












