/* ========================================
   Font Face - Roboto (English)
======================================== */
/* Note: Roboto is typically loaded from Google Fonts or CDN */
/* If you want to host it locally, add the font files and uncomment below */

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto/Roboto.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto/RobotoBold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   Font Face - IRANYekan (Persian)
======================================== */
@font-face {
  font-family: 'IRANYekan';
  src: url('../fonts/yekan/IRYekan.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANYekan';
  src: url('../fonts/yekan/IRYekanBold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* Reset and Base Styles */

:root {
  --primary-blue: #2196f3;
  --dark-blue: #1976d2;
  --light-blue: #e3f2fd;
  --light-green: #e6ee9c;
  --medium-orange: #ffd54f;
  --medium-purple: #ce93d8;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #666666;
  --color-white: #fafbfc;
  --color-gray: #2c3e50;
}

/* ========================================
   Base Styles
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    'Roboto',
    'IRANYekan',
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--color-white);
  color: var(--color-gray);
}

header {
  background-color: var(--white);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100000;
  /* padding: 16px 0; */
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 1rem 0; */
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-blue);
}

.nav-links a,
.nav-links span {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-info {
  flex: 1;
  width: 100%;
  margin: 5px;
}

.footer-info h3 {
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-info p {
  color: #ccc;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-block;
  height: 40px;
  background-color: var(--primary-blue);
  border-radius: 4px;
  text-align: center;
  line-height: 40px;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0 8px;
  font-size: 13px;
}

.social-link:hover {
  background-color: var(--dark-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #ccc;
}

#enamd_img {
  display: block !important;
  visibility: visible !important;
  min-width: 100px;
  min-height: 100px;
  margin: 0 auto !important;
}

.jdmlogo {
  position: absolute;
  width: 80px;
  height: auto;
  left: 50%;
  transform: translate(-50%, -100%);
}

#zarinpal {
  margin: auto;
}

#zarinpal img {
  width: 80px;
}

.avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4a90e2;
  color: white;
  font-size: 14px;
  font-weight: bold;
  margin-left: 4px;
}

.avatar-circle-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  font-size: 20px;
  font-weight: bold;
}

/* استایل دکمه‌های موبایل */
.mobile-actions {
  display: none;
  gap: 10px;
  align-items: center;
}

.mobile-icon-btn {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
  color: white;
  font-size: 20px;
}

.mobile-icon-btn i {
  font-size: 20px;
}

.home-btn {
  background: #c7c7c7 !important;
  box-shadow: 0 2px 8px rgba(94, 94, 94, 0.3) !important;
}

.admin-btn {
  background: linear-gradient(135deg, #e5aa73 0%, #ef9250 100%) !important;
  box-shadow: 0 2px 8px rgba(229, 115, 115, 0.3) !important;
}

.mobile-icon-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.guest-text {
  font-size: 14px;
  color: #4a90e2;
  font-weight: 500;
}

/* استایل دکمه‌های دسکتاپ */
.user-btn {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  padding: 8px 16px;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
  transition: all 0.3s ease;
}

.admin-btn-desktop {
  background: linear-gradient(135deg, #e57373 0%, #ef5350 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(229, 115, 115, 0.3);
  transition: all 0.3s ease;
}

.admin-btn-desktop:hover {
  color: white;
  opacity: 0.9;
}

.user-btn:hover {
  color: white;
  opacity: 0.9;
}

/* استایل موبایل */
@media (max-width: 991.98px) {
  /* مخفی کردن منوی اصلی */
  .navbar-collapse {
    display: none !important;
  }

  /* نمایش دکمه‌های موبایل */
  .mobile-actions {
    display: flex;
  }

  /* تنظیم navbar برای موبایل */
  .navbar {
    padding: 10px 0;
  }

  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .plans .container {
    flex-direction: column;
  }

  .body-container .container {
    flex-direction: column;
  }

  footer .container {
    flex-direction: column;
  }

  /* استایل dropdown در موبایل */
  .mobile-user-dropdown .dropdown-menu {
    position: absolute !important;
    min-width: 200px;
    top: 100% !important;
    margin-top: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
  }

  .dropdown-header {
    font-size: 14px;
    color: #4a90e2;
    padding: 10px 16px;
  }

  /* انیمیشن برای باز شدن منو */
  .mobile-user-dropdown .dropdown-menu.show {
    animation: fadeInDown 0.2s ease;
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* استایل دسکتاپ (بزرگتر از موبایل) */
@media (min-width: 992px) {
  .mobile-actions {
    display: none !important;
  }
}

.nav-link.dropdown-toggle:hover {
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.5) !important;
  transform: translateY(-1px);
}


