/* Reset و تنظیمات پایه */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #333;
  direction: rtl;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 100px;
}

/* ========== هدر اصلی ========== */
.main-header {
  background: linear-gradient(135deg, #1a2980, #26d0ce);
  color: white;
  padding: 20px 0 15px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.main-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #ff8a00, #e52e71);
}

/* ردیف بالایی */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 15px auto;
  padding: 0 20px;
}

/* لوگو */
.logo-container {
  flex: 0 0 auto;
}

.university-logo {
  height: 170px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
  background: white;
  padding: 5px;
  transition: transform 0.3s ease;
}

.university-logo:hover {
  transform: scale(1.05);
}

/* عنوان دانشگاه (مرکز) */
.university-info {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.university-info h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.university-info h2 {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.95;
}

/* اسپیسر برای تعادل */
.header-spacer {
  flex: 0 0 auto;
  width: 170px; /* عرض مشابه لوگو */
}

/* اطلاعات تماس (ردیف پایینی) */
.contact-info {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info p {
  margin: 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

.contact-info i {
  color: #ffd700;
}

/* کانتینر فرم */
.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* باکس اطلاعیه */
.notice-box {
  background: #e3f2fd;
  border-right: 4px solid #2196f3;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.notice-box i {
  color: #2196f3;
  font-size: 1.5rem;
}

.notice-box p {
  color: #0d47a1;
  font-weight: 500;
}

.notice-box strong {
  color: #e53935;
}

/* عنوان فرم */
.form-title {
  text-align: center;
  color: #1a2980;
  margin-bottom: 30px;
  font-size: 1.8rem;
  padding-bottom: 15px;
  border-bottom: 2px solid #26d0ce;
}

/* بخش‌های فرم */
.form-section {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 25px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.form-section:hover {
  border-color: #26d0ce;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-section legend {
  font-size: 1.2rem;
  color: #1a2980;
  padding: 0 15px;
  font-weight: 600;
  background: white;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd;
}

/* گروه‌های فرم */
.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
  font-size: 0.95rem;
}

.required {
  color: #e53935;
  font-weight: bold;
}

/* فیلدهای ورودی */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  color: #333;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: "Vazirmatn", sans-serif;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #26d0ce;
  box-shadow: 0 0 0 3px rgba(38, 208, 206, 0.2);
}

/* استایل مخصوص select */
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 15px center;
  background-size: 16px;
  padding-left: 40px;
}

/* بخش‌های مخفی */
.hidden-section {
  display: none;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* منطقه آپلود */
.upload-area {
  border: 3px dashed #bbb;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.upload-area:hover {
  border-color: #26d0ce;
  background: #f0f9ff;
  transform: translateY(-2px);
}

.upload-area i {
  font-size: 3rem;
  color: #777;
  margin-bottom: 15px;
}

.upload-area p {
  color: #555;
  margin-bottom: 10px;
}

.upload-hint {
  font-size: 0.85rem;
  color: #888;
  margin-top: 5px;
}

.browse-btn {
  background: #26d0ce;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.browse-btn:hover {
  background: #1a9c9a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(26, 156, 154, 0.3);
}

/* اطلاعات فایل */
.file-info {
  margin-top: 10px;
  padding: 10px 15px;
  background: #e8f5e9;
  border-radius: 8px;
  border-right: 3px solid #4caf50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.file-info i {
  color: #4caf50;
  margin-left: 10px;
}

.remove-file-btn {
  background: #ff5252;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.remove-file-btn:hover {
  background: #d32f2f;
}

/* راهنما */
.form-hint {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.4;
}

/* باکس توافق */
.agreement-box {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
  border-right: 3px solid #ff9800;
  transition: all 0.3s ease;
}

.agreement-box:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.agreement-box input[type="checkbox"] {
  margin-left: 10px;
  transform: scale(1.2);
  cursor: pointer;
}

.agreement-box label {
  cursor: pointer;
  display: inline;
  font-weight: normal;
  user-select: none;
}

.agreement-box a {
  color: #1a2980;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.agreement-box a:hover {
  color: #26d0ce;
  text-decoration: underline;
}

/* دکمه‌های فرم */
.form-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.submit-btn,
.reset-btn {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.submit-btn {
  background: linear-gradient(135deg, #1a2980, #26d0ce);
  color: white;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #26d0ce, #1a2980);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(38, 208, 206, 0.4);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.reset-btn {
  background: #f5f5f5;
  color: #666;
  border: 2px solid #ddd;
}

.reset-btn:hover {
  background: #e0e0e0;
  color: #333;
  transform: translateY(-2px);
}

/* پیام موفقیت */
.success-message {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-top: 5px solid #4caf50;
  animation: popIn 0.5s ease;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-icon {
  font-size: 4rem;
  color: #4caf50;
  margin-bottom: 20px;
  animation: bounce 1s ease infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

.success-message h2 {
  color: #2e7d32;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.tracking-code {
  font-size: 1.3rem;
  margin: 25px 0;
  padding: 15px;
  background: #e8f5e9;
  border-radius: 8px;
  border: 2px dashed #4caf50;
  font-weight: 600;
}

.tracking-code span {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  color: #1b5e20;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

.success-info {
  background: #f1f8e9;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: right;
  border-right: 3px solid #8bc34a;
}

.success-info p {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  color: #33691e;
}

.success-info i {
  color: #388e3c;
  font-size: 1.1rem;
}

.print-btn,
.new-reg-btn {
  padding: 12px 30px;
  margin: 10px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.print-btn {
  background: #ff9800;
  color: white;
}

.print-btn:hover {
  background: #f57c00;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 124, 0, 0.3);
}

.new-reg-btn {
  background: #2196f3;
  color: white;
}

.new-reg-btn:hover {
  background: #1976d2;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(25, 118, 210, 0.3);
}

/* فوتر */
.main-footer {
  background: #333;
  color: white;
  padding: 25px 0;
  text-align: center;
  position: relative;
  margin-top: 50px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content p {
  margin: 8px 0;
  color: #ccc;
  font-size: 0.9rem;
}

.footer-content a {
  color: #26d0ce;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: #1a9c9a;
  text-decoration: underline;
}

/* مودال */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  background: white;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: linear-gradient(135deg, #1a2980, #26d0ce);
  color: white;
  padding: 20px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.3s ease;
}

.close-modal:hover {
  transform: scale(1.2);
}

.modal-body {
  padding: 25px;
  text-align: right;
  line-height: 1.8;
}

.modal-body ol {
  padding-right: 20px;
  margin: 15px 0;
}

.modal-body li {
  margin-bottom: 10px;
  color: #555;
  padding-right: 10px;
}

.modal-note {
  background: #fff3cd;
  border-right: 4px solid #ffc107;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
  color: #856404;
}

.modal-footer {
  padding: 20px;
  text-align: left;
  border-top: 1px solid #eee;
}

.modal-close-btn {
  background: #26d0ce;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background: #1a9c9a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 156, 154, 0.3);
}

/* پیام‌های خطا */
.error-message {
  color: #e53935;
  margin-top: 5px;
  font-size: 0.85rem;
  min-height: 20px;
  padding-right: 5px;
}

/* کلاس مخفی */
.hide {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  z-index: -1000 !important;
}

/* ========== رسپانسیو ========== */
@media (max-width: 992px) {
  .header-top {
    flex-direction: column;
    gap: 15px;
  }

  .university-logo {
    height: 150px;
  }

  .header-spacer {
    display: none;
  }

  .university-info h1 {
    font-size: 1.5rem;
  }

  .university-info h2 {
    font-size: 1.1rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
  }

  .container {
    max-width: 95%;
    padding: 20px;
    margin: 20px auto;
  }

  .form-section {
    padding: 20px;
  }

  .upload-area {
    padding: 30px 15px;
  }

  .upload-area i {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .university-logo {
    height: 150px;
  }

  .university-info h1 {
    font-size: 1.3rem;
  }

  .university-info h2 {
    font-size: 1rem;
  }

  .contact-info p {
    font-size: 0.8rem;
  }

  .form-title {
    font-size: 1.5rem;
  }

  .form-section legend {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="date"],
  select,
  textarea {
    padding: 12px;
    font-size: 0.95rem;
  }

  .form-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .submit-btn,
  .reset-btn {
    padding: 14px;
    font-size: 1rem;
  }

  .success-message {
    margin: 20px;
    padding: 25px;
  }

  .success-icon {
    font-size: 3rem;
  }

  .success-message h2 {
    font-size: 1.5rem;
  }

  .tracking-code {
    font-size: 1.1rem;
  }

  .tracking-code span {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .university-logo {
    height: 150;
  }

  .university-info h1 {
    font-size: 1.2rem;
  }

  .university-info h2 {
    font-size: 0.9rem;
  }

  .notice-box {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .notice-box i {
    font-size: 1.3rem;
  }

  .form-section {
    padding: 15px;
  }

  .upload-area {
    padding: 25px 10px;
  }

  .upload-area p {
    font-size: 0.9rem;
  }

  .upload-hint {
    font-size: 0.75rem;
  }

  .browse-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }

  .file-info {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .agreement-box {
    padding: 15px;
  }

  .modal {
    width: 95%;
  }

  .modal-header {
    padding: 15px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-body li {
    font-size: 0.9rem;
  }
}

/* استایل برای حالت پرینت */
@media print {
  .main-header,
  .form-buttons,
  .success-message .print-btn,
  .success-message .new-reg-btn,
  .main-footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .container {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .success-message {
    border: 2px solid #4caf50;
    box-shadow: none;
  }

  .tracking-code {
    background: #f5f5f5;
    border: 1px dashed #4caf50;
  }
}

/* اضافه کردن این استایل‌ها به فایل style.css */

/* استایل مخصوص صفحه لاگین */
.login-box {
  max-width: 400px;
  margin: 50px auto;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 5px solid #1a2980;
  text-align: center;
}

.login-icon {
  font-size: 4rem;
  color: #1a2980;
  margin-bottom: 20px;
}

.login-note {
  color: #666;
  margin-bottom: 30px;
  font-size: 0.95rem;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 8px;
}

.login-links {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.login-links a {
  color: #1a2980;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.login-links a:hover {
  color: #26d0ce;
  text-decoration: underline;
}

/* استایل مخصوص inputهای لاگین */
#loginForm .form-group {
  text-align: right;
}

#loginForm input[type="text"],
#loginForm input[type="password"] {
  width: 100%;
  padding: 14px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  color: #333;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: "Vazirmatn", sans-serif;
  direction: rtl;
  text-align: right;
}

#loginForm input[type="text"]:focus,
#loginForm input[type="password"]:focus {
  outline: none;
  border-color: #26d0ce;
  box-shadow: 0 0 0 3px rgba(38, 208, 206, 0.2);
}

#loginForm input[type="password"] {
  letter-spacing: 2px; /* برای مخفی کردن بهتر رمز */
}

/* استایل دکمه لاگین */
#loginForm .submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #1a2980, #26d0ce);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: 20px;
}

#loginForm .submit-btn:hover {
  background: linear-gradient(135deg, #26d0ce, #1a2980);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(38, 208, 206, 0.4);
}

#loginForm .submit-btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* استایل برای حالت لودینگ */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* استایل پیام موفقیت در لاگین */
.success-message {
  background: #4caf50;
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  text-align: center;
  animation: fadeIn 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* استایل مخصوص header در صفحه لاگین */
.login-page .header-top {
  margin-bottom: 10px;
}

.login-page .contact-info {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* استایل responsive برای لاگین */
@media (max-width: 768px) {
  .login-box {
    max-width: 90%;
    padding: 30px 20px;
    margin: 30px auto;
  }

  .login-icon {
    font-size: 3rem;
  }
}

@media (max-width: 576px) {
  .login-box {
    padding: 25px 15px;
  }

  #loginForm input[type="text"],
  #loginForm input[type="password"] {
    padding: 12px;
  }

  #loginForm .submit-btn {
    padding: 14px;
    font-size: 1rem;
  }
}

/* پیام موفقیت */
.success-message {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-top: 5px solid #4caf50;
}

.success-icon {
  font-size: 4rem;
  color: #4caf50;
  margin-bottom: 20px;
}

.success-message h2 {
  color: #2e7d32;
  margin-bottom: 20px;
}

.tracking-code {
  font-size: 1.3rem;
  margin: 25px 0;
  padding: 15px;
  background: #e8f5e9;
  border-radius: 8px;
  border: 2px dashed #4caf50;
}

.tracking-code span {
  font-family: monospace;
  font-weight: bold;
  color: #1b5e20;
  font-size: 1.4rem;
}

.success-info {
  background: #f1f8e9;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: right;
}

.success-info p {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.success-info i {
  color: #388e3c;
}

.print-btn,
.new-reg-btn {
  padding: 12px 30px;
  margin: 10px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.print-btn {
  background: #ff9800;
  color: white;
}

.print-btn:hover {
  background: #f57c00;
}

.new-reg-btn {
  background: #2196f3;
  color: white;
}

.new-reg-btn:hover {
  background: #1976d2;
}

/* استایل‌های صفحه ticket */
.ticket-box {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 30px;
  border-top: 5px solid #1a2980;
}

.ticket-icon {
  font-size: 4rem;
  color: #1a2980;
  margin-bottom: 20px;
}

.ticket-title {
  color: #1a2980;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.ticket-description {
  color: #666;
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.ticket-form {
  max-width: 500px;
  margin: 0 auto;
}

.tracking-input {
  text-align: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 1.1rem;
  letter-spacing: 1px;
  direction: ltr;
}

.ticket-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.2rem;
  margin-top: 20px;
}

.error-box {
  background: #ffebee;
  border-right: 4px solid #e53935;
  color: #c62828;
  padding: 15px 20px;
  border-radius: 8px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  animation: fadeIn 0.3s ease;
}

.error-box i {
  font-size: 1.2rem;
}

.ticket-info-box {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  border: 2px solid #26d0ce;
  animation: slideIn 0.5s ease;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.ticket-header h3 {
  color: #1a2980;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-info {
  margin-bottom: 30px;
}

.info-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.info-item {
  flex: 1;
}

.info-item.full-width {
  flex: 2;
}

.info-item label {
  display: block;
  margin-bottom: 8px;
  color: #444;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-item span {
  display: block;
  padding: 12px 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #eee;
  color: #333;
  font-weight: 500;
  min-height: 45px;
  display: flex;
  align-items: center;
}

.ticket-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.download-btn,
.print-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.download-btn {
  background: linear-gradient(135deg, #1a2980, #26d0ce);
  color: white;
}

.download-btn:hover {
  background: linear-gradient(135deg, #26d0ce, #1a2980);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(38, 208, 206, 0.4);
}

.print-btn {
  background: #ff9800;
  color: white;
}

.print-btn:hover {
  background: #f57c00;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4);
}

.ticket-notice {
  background: #e3f2fd;
  border-right: 4px solid #2196f3;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.ticket-notice i {
  color: #2196f3;
  font-size: 1.5rem;
  margin-top: 3px;
}

.ticket-notice p {
  margin: 0;
  color: #0d47a1;
  line-height: 1.6;
}

.help-box {
  background: #f5f5f5;
  padding: 25px;
  border-radius: 10px;
  margin-top: 30px;
  border-right: 4px solid #666;
}

.help-box h3 {
  color: #444;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.help-list li {
  padding: 10px 0 10px 30px;
  border-bottom: 1px dashed #ddd;
  position: relative;
  color: #555;
  line-height: 1.6;
}

.help-list li:before {
  content: "•";
  color: #1a2980;
  font-size: 1.5rem;
  position: absolute;
  right: 0;
  top: 5px;
}

.help-list li:last-child {
  border-bottom: none;
}

/* انیمیشن‌ها */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* رسپانسیو */
@media (max-width: 768px) {
  .ticket-box {
    padding: 25px;
  }

  .info-row {
    flex-direction: column;
    gap: 15px;
  }

  .info-item {
    width: 100%;
  }

  .ticket-actions {
    flex-direction: column;
  }

  .download-btn,
  .print-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .ticket-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .ticket-notice {
    flex-direction: column;
    text-align: center;
  }
}

.admin-panel-btn-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.admin-panel-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1a2980, #26d0ce);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.admin-panel-btn:hover {
  background: linear-gradient(135deg, #26d0ce, #1a2980);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  color: white;
  text-decoration: none;
}

.admin-panel-btn:active {
  transform: translateY(0);
}

.admin-panel-btn i {
  font-size: 1.2rem;
}

.admin-panel-btn span {
  font-size: 0.95rem;
}

/* استایل ریسپانسیو برای دکمه ادمین */
@media (max-width: 992px) {
  .admin-panel-btn-container {
    top: 15px;
    left: 15px;
  }

  .admin-panel-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .admin-panel-btn-container {
    top: 10px;
    left: 10px;
  }

  .admin-panel-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .admin-panel-btn span {
    display: none; /* در موبایل فقط آیکون نمایش داده شود */
  }

  .admin-panel-btn i {
    font-size: 1.1rem;
    margin: 0;
  }
}

@media (max-width: 576px) {
  .admin-panel-btn-container {
    top: 8px;
    left: 8px;
  }

  .admin-panel-btn {
    padding: 6px 12px;
    border-radius: 6px;
  }

  .admin-panel-btn i {
    font-size: 1rem;
  }
}

/* استایل دکمه حذف دانشجو */
.full-delete-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.full-delete-btn:hover {
  background: #c82333;
  transform: translateY(-1px);
}

/* استایل برای انتخاب نوع جستجو */
.search-type-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.search-type-label {
  flex: 1;
  padding: 12px 15px;
  text-align: center;
  cursor: pointer;
  background-color: #f8f9fa;
  color: #666;
  font-weight: bold;
  transition: all 0.3s ease;
  border-right: 1px solid #ddd;
}

.search-type-label:last-child {
  border-right: none;
}

.search-type-label:hover {
  background-color: #e9ecef;
}

.search-type-label.active {
  background-color: #2c3e50;
  color: white;
}

.search-type-label i {
  margin-left: 8px;
}

/* استایل فرم‌های جستجو */
.search-form {
  transition: all 0.3s ease;
}

.search-form.hide {
  display: none;
}

/* استایل input کد ملی */
.national-input,
.tracking-input {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-family: monospace;
  letter-spacing: 1px;
}

.national-input:focus,
.tracking-input:focus {
  border-color: #2c3e50;
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

/* استایل دکمه کارت ورود */
.ticket-btn {
  background: linear-gradient(135deg, #9c27b0, #673ab7);
  color: white;
  padding: 12px 30px;
  margin: 10px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.ticket-btn:hover {
  background: linear-gradient(135deg, #673ab7, #9c27b0);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(103, 58, 183, 0.3);
}

/* برای تنظیم دکمه‌ها در حالت موبایل */
@media (max-width: 768px) {
  .success-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .print-btn,
  .new-reg-btn,
  .ticket-btn {
    width: 100%;
    justify-content: center;
    margin: 5px 0;
  }
}

/* استایل‌های مربوط به پیام موفقیت */
.success-message {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-top: 5px solid #2196f3;
  animation: popIn 0.5s ease;
  display: block !important;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 1s ease infinite alternate;
  display: block;
  color: #2196f3;
}

.success-message h2 {
  color: #1a2980;
  margin-bottom: 15px;
  font-size: 1.8rem;
  display: block;
}

.success-message p {
  color: #666;
  line-height: 1.6;
  display: block;
  margin-bottom: 20px;
}

.tracking-info {
  background: #e3f2fd;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  border-right: 4px solid #2196f3;
  display: block;
  text-align: right;
}

.tracking-info-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  color: #0d47a1;
}

.tracking-code-box {
  text-align: center;
  padding: 15px;
  background: white;
  border-radius: 8px;
  border: 2px dashed #26d0ce;
  display: block;
  margin-top: 10px;
}

#trackingCode {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.4rem;
  font-weight: bold;
  color: #1a2980;
  letter-spacing: 1px;
  direction: ltr;
  display: inline-block;
  margin-top: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  min-width: 300px;
}

.results-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
  color: #388e3c;
  justify-content: center;
}

.success-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.print-btn,
.new-reg-btn {
  flex: 1;
  max-width: 200px;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 1rem;
  min-height: 50px;
}

.print-btn {
  background: #ff9800;
  color: white;
}

.print-btn:hover {
  background: #f57c00;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 124, 0, 0.3);
}

.new-reg-btn {
  background: #2196f3;
  color: white;
}

.new-reg-btn:hover {
  background: #1976d2;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(25, 118, 210, 0.3);
}
