/* Reset and Base Styles */
body {
  margin: 0;
  font-family: Vazir, Tahoma, sans-serif;
  background: linear-gradient(to bottom right, #1e1e2f, #101018);
  color: #ffffff;
  direction: rtl;
  font-feature-settings: "ss01";
  -webkit-font-feature-settings: "ss01";
  -moz-font-feature-settings: "ss01";
  line-height: 1.6;
}

.wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 1rem 0;
}

header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(to right, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

header p {
  color: #d1d5db;
  font-size: 1.1rem;
  margin: 0;
}

/* Main Content Styles */
main {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #444;
  border-radius: 14px;
  padding: 2.5rem;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
  flex: 1;
}

section {
  margin-bottom: 2.5rem;
}

section:last-child {
  margin-bottom: 0;
}

h2 {
  font-size: 1.5rem;
  color: #e5e7eb;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}

p, li {
  color: #cbd5e1;
  font-size: 0.95rem;
}

ul {
  padding-right: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-size: 0.95rem;
  color: #d1d5db;
  font-weight: 500;
}

input[type="number"],
.position-select,
button {
  height: 50px;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 1rem;
  box-sizing: border-box;
  font-family: Vazir, Tahoma, sans-serif;
  transition: all 0.2s ease;
}

input[type="number"],
.position-select {
  width: 100%;
  border: 1px solid #4b5563;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

input[type="number"]:focus,
.position-select:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.position-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-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='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 1rem;
  padding-left: 2.5rem;
  cursor: pointer;
}

.position-select option {
  background: #333;
  color: #fff;
}

button {
  font-weight: bold;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

button:active {
  transform: translateY(0);
}

#selectLogo {
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  color: white;
}

#selectLogo:hover {
  background: linear-gradient(to right, #2563eb, #7c3aed);
}

#selectImages {
  background: linear-gradient(to right, #8b5cf6, #ec4899);
  color: white;
}

#selectImages:hover {
  background: linear-gradient(to right, #7c3aed, #db2777);
}

#processBtn {
  background: linear-gradient(to right, #10b981, #14b8a6);
  color: white;
}

#processBtn:hover {
  background: linear-gradient(to right, #059669, #0d9488);
}

#downloadBtn {
  background: linear-gradient(to right, #f59e0b, #f97316);
  color: white;
}

#downloadBtn:hover:not(:disabled) {
  background: linear-gradient(to right, #d97706, #ea580c);
}

#downloadBtn:disabled {
  background: #4b5563;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.file-info {
  font-size: 0.9rem;
  color: #9ca3af;
  padding: 0.5rem 0;
  min-height: 1.5rem;
}

/* Progress Bar Styles */
.progress {
  margin: 2.5rem 0;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.progress-bar {
  background: #374151;
  height: 12px;
  border-radius: 9999px;
  overflow: hidden;
}

#progressBarInner {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  transition: width 0.4s ease;
}

/* Button Group Styles */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

/* Footer Styles */
footer {
  text-align: center;
  margin-top: 3rem;
  color: #9ca3af;
  font-size: 0.9rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (min-width: 640px) {
  .wrapper {
      padding: 3rem 2rem;
  }
  
  .button-group {
      flex-direction: row;
  }
  
  .button-group button {
      flex: 1;
  }
  
  header h1 {
      font-size: 2.75rem;
  }
}

@media (min-width: 768px) {
  header h1 {
      font-size: 3rem;
  }
  
  main {
      padding: 3rem;
  }
}

/* استایل مودال درخواست کمک مالی */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background: linear-gradient(to bottom right, #2d2d42, #1a1a2e);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 14px;
  border: 1px solid #444;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-50px);}
  to {opacity: 1; transform: translateY(0);}
}

.close {
  color: #aaa;
  float: left;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  left: 15px;
  top: 10px;
}

.close:hover {
  color: #fff;
}

.modal-content h2 {
  text-align: center;
  margin-top: 0;
  color: #60a5fa;
}

.donation-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.donation-option {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #4b5563;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.donation-option:hover {
  background: rgba(96, 165, 250, 0.2);
  border-color: #60a5fa;
}

.donation-option.selected {
  background: rgba(96, 165, 250, 0.3);
  border-color: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.custom-amount {
  margin: 1rem 0;
}

.custom-amount input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #4b5563;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.donate-button {
  background: linear-gradient(to right, #10b981, #14b8a6);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

.donate-button:hover {
  background: linear-gradient(to right, #059669, #0d9488);
}

.skip-button {
  background: transparent;
  color: #9ca3af;
  padding: 0.75rem;
  border: 1px solid #4b5563;
  border-radius: 10px;
  cursor: pointer;
}

.skip-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* رسپانسیو برای مودال */
@media (max-width: 640px) {
  .modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 1.5rem;
  }
  
  .donation-options {
    grid-template-columns: 1fr;
  }
}

/* استایل برای بخش نمادهای اعتماد */
.trust-symbols {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 10px;
}

.trust-symbols img {
  width: 85px;
  height: 85px;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.trust-symbols img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* رسپانسیو برای نماد اینماد */
@media (max-width: 768px) {
  .trust-symbols img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .trust-symbols {
    margin-bottom: 1rem;
  }
  
  .trust-symbols img {
    width: 60px;
    height: 60px;
  }
}