@font-face {
  font-family: "Vazir";
  src:
    url("../assets/Font/Vazirmatn-VariableFont_wght.ttf") format("woff2"),
    url("../assets/Font/Vazirmatn-VariableFont_wght.ttf") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "lalezar";
  src:
    url("../assets/Font/Lalezar-Regular.ttf") format("woff2"),
    url("../assets/Font/Lalezar-Regular.ttf") format("woff");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Vazir", sans-serif;
  background: #0f0f0f;
  color: white;
  overflow-x: hidden;
}

.main_container {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 0;
  position: relative;
  overflow: hidden;
  direction: rtl;
}

/* استایل‌های مشترک برای کانتینرها */
.login-container,
.register_container {
  width: 90%;
  max-width: 450px;
  min-height: 400px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 30px 25px;
  margin: 20px 0;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.login-container:hover,
.register_container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* تیترها */
.login-container h1,
.register_container h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-family: "lalezar", sans-serif;
  padding: 15px 10px;
  color: #ffd700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
}

.register_guide_text {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  font-family: "vazir", sans-serif;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  color: #e0e0e0;
  padding: 8px 15px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

/* فرم‌ها */
.login-container form,
.information_register,
.code_register {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.code_register {
  direction: ltr;
}

/* فیلدهای ورودی */
.login-container form input,
.information_register input {
  width: 100%;
  max-width: 320px;
  height: 45px;
  border: none;
  border-radius: 12px;
  padding: 5px 15px;
  font-family: "vazir", sans-serif;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.3s ease;
}

.login-container form input:focus,
.information_register input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.login-container form input::placeholder,
.information_register input::placeholder {
  color: #b0b0b0;
}

/* بخش پسورد */
.password {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.password_visibility {
  position: absolute;
  padding: 6px 5px;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.password_visibility:hover {
  background: rgba(233, 233, 233, 0.2);
}

.password_visibility img {
  width: 18px;
  height: 18px;
  filter: invert(0.8);
}

/* دکمه‌ها */
.login_submit_button {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.login_submit_button button,
.register_submit_btn,
.register_backto_login,
#code_register_submitbtn {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1a1a1a;
  border-radius: 12px;
  padding: 12px 25px;
  font-family: "vazir", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  width: 100%;
  max-width: 220px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  margin: 10px 0;
}

.login_submit_button button:hover,
.register_submit_btn:hover,
.register_backto_login:hover,
#code_register_submitbtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
}

.login_submit_button button:active,
.register_submit_btn:active,
.register_backto_login:active,
#code_register_submitbtn:active {
  transform: translateY(0);
}

#register_opener {
  background: transparent;
  color: #ffd700;
  border: 1px solid #ffd700;
  box-shadow: none;
}

#register_opener:hover {
  background: rgba(255, 215, 0, 0.1);
}

/* استایل‌های مربوط به ثبت نام */
.register_container {
  min-height: 500px;
}

.information_register {
  height: max-content;
}

.code_register {
  display: none;
}

.otp_inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 15px 0;
}

.otp_input {
  width: 55px !important;
  height: 55px !important;
  border: none;
  border-radius: 12px;
  padding: 5px;
  font-family: "vazir", sans-serif;
  font-size: 1.4rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.3s ease;
}

.otp_input:focus {
  outline: none;
  border-color: #ffd700;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.active {
  display: flex !important;
}

.dis_active {
  display: none;
}

/* استایل‌های مربوط به فوتر */
.include-footer {
  width: 100%;
  height: auto;
  min-height: 28vh;
}

/* استایل‌های مربوط به پیام‌های خطا */
.backend-response {
  padding: 10px;
  margin-top: 15px;
  border-radius: 10px;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.backend-response p {
  color: #ff8a80;
  font-size: 1rem;
  font-family: "vazir", sans-serif;
  margin: 0;
}

/* استایل‌های مربوط به پنل کاربری */
.user_account_center {
  width: 100%;
  /* max-width: 800px; */
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 25px;
  text-align: center;
}

.account_information h2 {
  margin-bottom: 20px;
  color: #ffd700;
  font-size: clamp(1.5rem, 4vw, 2.2em);
  font-family: "lalezar", sans-serif;
}

.account_information p {
  font-size: clamp(1rem, 3vw, 1.3em);
  margin: 12px 0;
  color: #e0e0e0;
  font-family: "vazir", sans-serif;
  text-align: right;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.account_actions {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account_actions button {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "vazir", sans-serif;
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.account_actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.orders_section {
  margin-top: 30px;
  text-align: right;
}

.orders_section h3 {
  font-size: clamp(1.2rem, 3vw, 1.5em);
  color: #ffd700;
  margin-bottom: 16px;
  font-family: "lalezar", sans-serif;
}

.orders_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.orders_list li {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  font-family: "vazir", sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.orders_list li:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(-5px);
}

.orders_list li span:first-child {
  margin-bottom: 8px;
}

.orders_list li span {
  color: #232323;
}

.order-status {
  font-size: 0.9rem;
  color: #1a1a1a;
  background: #ffd700;
  border-radius: 6px;
  padding: 5px 12px;
  align-self: flex-end;
  margin: 20px 20px 10px 10px;

  font-weight: 600;
}

.order-status.pending {
  background: #ffa000;
  width: max-content;

  color: white;
}

.order-status.canceled {
  background: #f44336;
  color: white;
}
/* استایل‌های جدید اضافه شده */
.account-container {
  display: flex;
  min-height: calc(100vh - 140px);
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  direction: rtl;
}

.account-sidebar {
  width: 280px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 8px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-family: "vazir", sans-serif;
  font-size: 0.95rem;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  border-right: 3px solid #ffd700;
}

.sidebar-menu svg {
  width: 20px;
  height: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.account-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;

  svg {
    width: 70px;
    height: 70px;
  }
}

.user-welcome {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.welcome-text {
  direction: rtl;
  font-size: 1.8rem;
  color: #ffd700;
  font-family: "lalezar", sans-serif;
  margin-bottom: 10px;
}

.welcome-subtext {
  color: #b0b0b0;
  font-size: 1rem;
  font-family: "vazir", sans-serif;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 215, 0, 0.3);
}

.stat-number {
  font-size: 2rem;
  color: #ffd700;
  font-family: "lalezar", sans-serif;
  margin-bottom: 5px;
}

.stat-label {
  color: #b0b0b0;
  font-size: 0.9rem;
  font-family: "vazir", sans-serif;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;

  svg {
    width: 70px;
    height: 70px;
  }
}

.action-btn {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: "vazir", sans-serif;
  cursor: pointer;
}

.action-btn:hover {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.action-btn svg {
  position: absolute;
  left: 5px;
  width: 30px;
  height: 30px;
  color: #ffd700;
}

/* بهبود استایل‌های موجود */
.user_account_center {
  width: 100%;
  margin: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.account_information {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.account_information p {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 15px;
  border-radius: 10px;
  margin: 12px 0;
  transition: all 0.3s ease;
}

.account_information p:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.2);
}

.account_actions {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.orders_section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.order-status {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "vazir", sans-serif;
}

.delivered {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}
.pending {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.3);
}
.canceled {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.change-profile,
.ShowOrderDetail,
.deleteAccount {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6); /* بک‌گراند تار */
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-changeProfile-container,
.popup-showOrderDetail-container,
.deleteContainer {
  position: relative;
  background: #1e1e1e;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  width: 600px;
  animation: popup 0.3s ease forwards;
}

.form-container,
.deleteAccountForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.formInput input {
  display: flex;
  width: 300px;
  height: 50px;
  padding: 10px;
  border-radius: 20px;
  gap: 8px;
  font-family: "vazir", sans-serif;
  color: #1a1a1aff;
  border: 1px solid #ffd700;
}

.close-popup {
  position: absolute;
  top: 20px;
  right: 550px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  fill: #fff;
}

.submit-change-form,
.submitDeleteForm {
  color: #1e1e1e;
  font-family: "vazir", sans-serif;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 20px;
  transition: 0.6s;
}

.submit-change-form:hover,
.submitDeleteForm:hover {
  background-color: #ffd700;
}

/* استایل‌های خطا در فرم ویرایش */
.error-msg {
  color: #f44336;
  font-size: 0.8rem;
  margin-top: 5px;
  text-align: right;
  width: 100%;
}

.close-popup svg {
  width: 40px;
  height: 40px;
  color: #fff;
  transition: 0.3s;
}
.close-popup:hover i {
  color: #ffd700;
}

@keyframes popup {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* رسپانسیو برای تبلت (768px) */
@media (min-width: 768px) {
  .login-container,
  .register_container {
    width: 70%;
    padding: 35px 30px;
  }

  .login_submit_button {
    flex-direction: row;
    gap: 20px;
  }

  .account_actions {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .orders_list li {
    flex-direction: row;
    align-items: center;
    font-size: 1rem;
  }

  .orders_list li span:first-child {
    margin-bottom: 0;
    flex: 1;
  }

  .order-status {
    margin-right: 10px;
    align-self: center;
  }

  .code_register .otp_inputs {
    gap: 15px;
  }

  .otp_input {
    width: 60px !important;
    height: 60px !important;
  }
}

/* رسپانسیو برای موبایل بزرگ (604px) */
@media (min-width: 604px) and (max-width: 767px) {
  .login-container,
  .register_container {
    width: 80%;
  }

  .login_submit_button {
    flex-direction: row;
    gap: 15px;
  }

  .account_actions {
    flex-direction: row;
    justify-content: center;
    gap: 15px;
  }

  .orders_list li {
    flex-direction: row;
    align-items: center;
  }

  .orders_list li span:first-child {
    margin-bottom: 0;
    flex: 1;
  }

  .order-status {
    margin-right: 10px;
    align-self: center;
  }
}
/* استایل‌های جدید */
.order-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.order-card:hover {
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-2px);
}

.order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-row:last-child {
  border-bottom: none;
}

.order-actions {
  margin-top: 15px;
  text-align: left;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: "vazir", sans-serif;
  transition: all 0.3s ease;

  svg {
    width: 15px;
    height: 15px;
    margin: 0px 0px -4px 5px;
  }
}

.btn-outline {
  text-align: center;
  background: transparent;
  border: 1px solid #ffd700;
  color: #ffd700;
}

.btn-outline:hover {
  background: #ffd700;
  color: #1a1a1a;
}

.text-success {
  color: #4caf50;
}
.text-warning {
  color: #ff9800;
}

/* استایل برای وضعیت‌ها */
.processing {
  background: rgba(33, 150, 243, 0.2);
  color: #2196f3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

/* رسپانسیو */
@media (max-width: 768px) {
  .account-container {
    flex-direction: column;
    padding: 15px;
  }

  .account-sidebar {
    width: 100%;
    order: 2;
  }

  .account-main {
    order: 1;
  }

  .stats-cards,
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-cards,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .account_actions {
    flex-direction: column;
  }
}

/* رسپانسیو برای موبایل کوچک (320px) */
@media (max-width: 320px) {
  .login-container,
  .register_container {
    width: 95%;
    padding: 20px 15px;
  }

  .login-container h1,
  .register_container h1 {
    padding: 10px 5px;
  }

  .code_register input {
    width: 45px !important;
    height: 45px !important;
  }

  .account_information p {
    font-size: 0.9rem;
  }

  .account_actions button {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .orders_list li {
    padding: 12px 10px;
    font-size: 0.85rem;
  }

  .otp_inputs {
    gap: 8px;
  }
}

/* انیمیشن‌های ظریف */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-container,
.register_container,
.user_account_center {
  animation: fadeIn 0.5s ease-out;
}

/* افکت‌های ظریف برای المان‌های تعاملی */
button,
input,
.password_visibility {
  transition: all 0.3s ease;
}

button:focus,
input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}
