@charset "UTF-8";
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: VazirFont;
  src: url("../fonts/Vazirmatn-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg-body: #f8fafc;
  --bg-sidebar: #ffffff;
  --primary-color: #4f46e5; /* رنگ اصلی ایندیگو */
  --text-main: #334155;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --sidebar-width: 280px;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  overflow-x: hidden;
}

#login {
  font-family: "Vazirmatn", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
#login .login-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background-color: #ffffff;
}
#login .login-header {
  background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
  color: white;
  padding: 30px;
  text-align: center;
}
#login .login-header h3 {
  margin-bottom: 0;
  font-weight: 700;
}
#login .login-body {
  padding: 40px;
}
#login .form-control {
  border-radius: 10px;
  padding: 12px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  text-align: center;
  font-weight: bold;
}
#login .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.25);
  border-color: #6a11cb;
  background-color: #fff;
}
#login .btn-login {
  background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-weight: bold;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
#login .btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
  color: white;
}
#login .input-group-text {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-right: none; /* برای RTL */
  border-radius: 0 10px 10px 0;
}
#login {
  /* اصلاح برای حالت RTL: گوشه سمت چپ باید گرد باشد */
}
#login .rtl-input .form-control {
  border-radius: 10px 0 0 10px;
}

#register {
  font-family: "Vazirmatn", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
#register .register-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background-color: #ffffff;
}
#register .register-header {
  background: linear-gradient(to right, #11998e 0%, #38ef7d 100%);
  color: white;
  padding: 30px;
  text-align: center;
}
#register .register-header h3 {
  margin-bottom: 0;
  font-weight: 700;
}
#register .register-body {
  padding: 30px;
}
#register .form-control, #register .form-select {
  border-radius: 8px;
  padding: 10px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
}
#register .form-control:focus, #register .form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(17, 153, 142, 0.25);
  border-color: #11998e;
  background-color: #fff;
}
#register .btn-register {
  background: linear-gradient(to right, #11998e 0%, #38ef7d 100%);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: bold;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
#register .btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(56, 239, 125, 0.4);
  color: white;
}
#register .input-group-text {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-right: none;
  border-radius: 0 8px 8px 0;
}
#register .rtl-input .form-control {
  border-radius: 8px 0 0 8px;
}

#dashboard {
  /* --- سایدبار --- */
}
#dashboard .sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  background-color: var(--bg-sidebar);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease;
}
#dashboard .sidebar-header {
  padding: 25px;
  border-bottom: 1px solid var(--border-color);
}
#dashboard .brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}
#dashboard .nav-menu {
  padding: 20px 10px;
  flex-grow: 1;
  overflow-y: auto;
}
#dashboard .nav-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 10px;
  margin-bottom: 5px;
  transition: all 0.2s;
  cursor: pointer;
  font-weight: 500;
}
#dashboard .nav-item:hover {
  background-color: #f1f5f9;
  color: var(--primary-color);
}
#dashboard .nav-item.active {
  background-color: #eef2ff;
  color: var(--primary-color);
}
#dashboard .nav-item i {
  font-size: 1.2rem;
  margin-left: 12px;
  width: 24px;
  text-align: center;
}
#dashboard .sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
}
#dashboard {
  /* --- محتوای اصلی --- */
}
#dashboard .main-content {
  margin-right: var(--sidebar-width);
  padding: 30px;
  min-height: 100vh;
  transition: margin-right 0.3s ease;
}
#dashboard {
  /* --- کارت‌ها و اجزا --- */
}
#dashboard .card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}
#dashboard .card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
  font-weight: 700;
  color: var(--text-main);
}
#dashboard .file-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  transition: transform 0.2s;
}
#dashboard .file-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}
#dashboard .file-icon {
  width: 50px;
  height: 50px;
  background-color: #e0e7ff;
  color: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-left: 15px;
}
#dashboard .btn-primary-custom {
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 8px 20px;
  border-radius: 8px;
  transition: 0.2s;
}
#dashboard .btn-primary-custom:hover {
  background-color: #4338ca;
  color: white;
}
#dashboard .status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
#dashboard .status-paid {
  background-color: #dcfce7;
  color: #166534;
}
#dashboard .status-pending {
  background-color: #fef9c3;
  color: #854d0e;
}
#dashboard {
  /* --- تب‌ها (شبیه‌سازی SPA) --- */
}
#dashboard .tab-content {
  display: none;
  animation: fadeIn 0.4s;
}
#dashboard .tab-content.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#dashboard {
  /* --- واکنش‌گرا --- */
}
@media (max-width: 992px) {
  #dashboard .sidebar {
    transform: translateX(100%);
  }
  #dashboard .sidebar.show {
    transform: translateX(0);
  }
  #dashboard .main-content {
    margin-right: 0;
  }
}

#FileDetails .card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  overflow: hidden;
}
#FileDetails .product-thumbnail {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
}
#FileDetails .price-tag {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-color);
}
#FileDetails .old-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 1rem;
}
#FileDetails .download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: all 0.2s;
  background-color: #fff;
}
#FileDetails .download-item:hover {
  border-color: var(--primary-color);
  transform: translateX(-5px);
}
#FileDetails .file-icon {
  width: 45px;
  height: 45px;
  background-color: #e0e7ff;
  color: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-left: 15px;
}
#FileDetails .btn-download {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.2s;
}
#FileDetails .btn-download:hover {
  background-color: #4338ca;
  color: white;
}
#FileDetails .info-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
}
#FileDetails .info-row:last-child {
  border-bottom: none;
}
#FileDetails .info-label {
  color: var(--text-light);
}
#FileDetails .info-value {
  font-weight: 600;
}
#FileDetails .back-btn {
  color: var(--text-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.2s;
}
#FileDetails .back-btn:hover {
  color: var(--primary-color);
}

#view_invoice .invoice-box {
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
#view_invoice .invoice-header {
  background: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
  color: white;
  padding: 40px;
  position: relative;
}
#view_invoice .invoice-status {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
#view_invoice .invoice-details {
  padding: 40px;
}
#view_invoice .table thead th {
  border-bottom: 2px solid var(--border-color);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  background-color: transparent;
}
#view_invoice .table td {
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}
#view_invoice .product-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}
#view_invoice .summary-card {
  background-color: #f8fafc;
  border-radius: 16px;
  padding: 25px;
  border: 1px solid var(--border-color);
}
#view_invoice .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
#view_invoice .total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed var(--border-color);
  font-weight: 800;
  font-size: 15px;
  color: var(--primary-color);
}
#view_invoice .btn-pay {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  width: 100%;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}
#view_invoice .btn-pay:hover {
  background-color: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
  color: white;
}
#view_invoice .btn-print {
  background-color: white;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 10px;
  transition: 0.2s;
}
#view_invoice .btn-print:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}
#view_invoice .back-link {
  color: var(--text-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.2s;
}
#view_invoice .back-link:hover {
  color: var(--primary-color);
}

#invoices .card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}
#invoices .table thead th {
  border-bottom: 2px solid var(--border-color);
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
  background-color: #f8fafc;
  padding: 15px;
}
#invoices .table td {
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
  padding: 15px;
  color: var(--text-main);
}
#invoices .invoice-id {
  font-weight: 700;
  color: var(--primary-color);
  font-family: monospace; /* برای خوانایی اعداد */
  font-size: 1.1rem;
}
#invoices {
  /* استایل وضعیت‌ها */
}
#invoices .status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#invoices .status-paid {
  background-color: #dcfce7;
  color: #166534;
}
#invoices .status-pending {
  background-color: #fef9c3;
  color: #854d0e;
}
#invoices .status-failed {
  background-color: #fee2e2;
  color: #991b1b;
}
#invoices .action-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--text-light);
  text-decoration: none;
}
#invoices .action-btn:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
#invoices .btn-filter {
  background-color: white;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
}
#invoices .btn-filter:hover, #invoices .btn-filter.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
#invoices .search-box {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 15px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 300px;
}
#invoices .search-box input {
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
}

#open_ticket .card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}
#open_ticket .form-label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}
#open_ticket .form-control, #open_ticket .form-select {
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: #f8fafc;
  color: var(--text-main);
  transition: all 0.2s;
}
#open_ticket .form-control:focus, #open_ticket .form-select:focus {
  background-color: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
#open_ticket .btn-submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}
#open_ticket .btn-submit:hover {
  background-color: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
  color: white;
}
#open_ticket .back-link {
  color: var(--text-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.2s;
}
#open_ticket .back-link:hover {
  color: var(--primary-color);
}
#open_ticket .priority-high {
  color: #ef4444;
  font-weight: bold;
}
#open_ticket .priority-medium {
  color: #f59e0b;
  font-weight: bold;
}
#open_ticket .priority-low {
  color: #10b981;
  font-weight: bold;
}

#view_ticket .ticketBox {
  height: 64vh;
  overflow-y: scroll;
}
#view_ticket .card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}
#view_ticket {
  /* استایل تیکت اصلی */
}
#view_ticket .ticket-main {
  background-color: #fff;
  border-right: 5px solid var(--primary-color);
}
#view_ticket {
  /* استایل پیام‌ها (چت) */
}
#view_ticket .message-box {
  display: flex;
  margin-bottom: 25px;
}
#view_ticket .message-content {
  max-width: 80%;
  padding: 15px 20px;
  border-radius: 16px;
  position: relative;
  line-height: 1.6;
  font-size: 0.95rem;
}
#view_ticket {
  /* پیام ادمین (راست) */
}
#view_ticket .message-admin {
  flex-direction: row;
}
#view_ticket .message-admin .message-content {
  background-color: var(--primary-color);
  color: white;
  border-top-right-radius: 0;
}
#view_ticket .message-admin .sender-name {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  margin-bottom: 5px;
  display: block;
}
#view_ticket {
  /* پیام کاربر (چپ) */
}
#view_ticket .message-user {
  flex-direction: row-reverse;
}
#view_ticket .message-user .message-content {
  background-color: #f1f5f9;
  color: var(--text-main);
  border-top-left-radius: 0;
  border: 1px solid var(--border-color);
}
#view_ticket .message-user .sender-name {
  color: var(--text-light);
  font-size: 0.8rem;
  margin-bottom: 5px;
  display: block;
  text-align: left;
}
#view_ticket .time-stamp {
  font-size: 0.75rem;
  margin-top: 8px;
  display: block;
  opacity: 0.7;
  text-align: left;
}
#view_ticket .message-user .time-stamp {
  text-align: right;
}
#view_ticket {
  /* آواتار */
}
#view_ticket .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
#view_ticket .message-admin .avatar {
  margin-left: 12px;
}
#view_ticket .message-user .avatar {
  margin-right: 12px;
}
#view_ticket {
  /* فرم پاسخ */
}
#view_ticket .reply-form {
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
}
#view_ticket .btn-send {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.2s;
}
#view_ticket .btn-send:hover {
  background-color: #4338ca;
  color: white;
}
#view_ticket .back-link {
  color: var(--text-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: 0.2s;
}
#view_ticket .back-link:hover {
  color: var(--primary-color);
}

#viewCart .cart-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
#viewCart .product-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
#viewCart .quantity-input {
  width: 60px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 5px;
  background-color: #f8fafc;
}
#viewCart .btn-remove {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
#viewCart .btn-remove:hover {
  background: #ef4444;
  color: white;
}
#viewCart .summary-box {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 25px;
}
#viewCart .summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 0.95rem;
}
#viewCart .total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px dashed var(--border-color);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary-color);
}
#viewCart .btn-checkout {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  width: 100%;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}
#viewCart .btn-checkout:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  color: white;
}
#viewCart .empty-cart {
  text-align: center;
  padding: 60px 20px;
}/*# sourceMappingURL=main.css.map */