body {
  background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #1c1c1c);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
  font-family: "Vazirmatn", sans-serif;
  min-height: 100vh;


  color: #e0e0e0;
}
#uploadSpeed {
  margin-top: 10px;
  padding: 10px;
  background: linear-gradient(90deg, #e3f2fd, #bbdefb);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0d47a1;
  text-align: center;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.75; }
  100% { opacity: 1; }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.discord-button {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #7289DA;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(114, 137, 218, 0.6);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
    display: flex;        /* استفاده از فلکس برای چینش داخلی */
  justify-content: flex-end; /* راست چین */
  align-items: flex-start;   /* بالا چین */
}
.discord-button svg {
  transition: transform 0.3s ease;
}
.discord-button:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(114, 137, 218, 0.8);
}



.upload-container {
  background: rgba(45, 29, 96, 0.83);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  max-width: 480px;   /* ✅ کمی بزرگ‌ترش کردم */
  width: 100%;
  padding: 35px 40px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeIn 0.7s ease;
  margin: 30px auto 40px auto;
}

h2 {
  margin-bottom: 30px;
  font-weight: 800;
  font-size: 1.9rem;
  color: #f5faff;
  text-shadow: 0 0 12px rgba(0, 200, 255, 0.5);
}

input[type="file"] {
  display: none;
}

label.custom-file-upload {
  display: inline-block;
  padding: 14px 30px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(0, 200, 255, 0.2);
  transition: all 0.3s ease;
  user-select: none;
  border: 1px solid rgba(0, 200, 255, 0.3);
}
label.custom-file-upload:hover {
  background: rgba(0, 200, 255, 0.15);
  box-shadow: 0 0 25px rgba(0, 200, 255, 0.5);
}

button {
  font-family: "Vazirmatn", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 198, 255, 0.4),
              0 0 30px rgba(0, 114, 255, 0.2);
  text-shadow: 0 0 6px rgba(255,255,255,0.7),
               0 0 14px rgba(0,198,255,0.7);
}

button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(25deg);
  transition: all 0.5s ease;
}

button:hover::before {
  top: -20%;
  left: -20%;
}

button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.7),
              0 0 40px rgba(0, 114, 255, 0.5);
  background: linear-gradient(135deg, #0072ff, #00c6ff);
}



#file-chosen {
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 500;
  color: #a8b3c9;
  min-height: 1.3em;
}

button {
  margin-top: 30px;
  width: 100%;
  padding: 15px 0;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 114, 255, 0.4);
  transition: all 0.3s ease;
}
button:hover {
  background: linear-gradient(135deg, #0072ff, #0052cc);
  box-shadow: 0 0 35px rgba(0, 114, 255, 0.8);
  transform: translateY(-2px);
}

/* پیام موفقیت و خطا */
.message {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.message.success {
  background: rgba(40, 167, 69, 0.15);
  color: #57e589;
  border: 1px solid rgba(40, 167, 69, 0.3);
}
.message.error {
  background: rgba(220, 53, 69, 0.15);
  color: #ff6b81;
  border: 1px solid rgba(220, 53, 69, 0.3);
}


label {
  font-weight: bold;
  display: block;
  margin-top: 10px;
  color: #bbb;
}

.progress-container {
  margin-top: 12px;
  direction: ltr;
  color: #00c6ff;
  font-size: 0.9rem;
}

.progress-container {
  margin-top: 12px;
  direction: ltr;
  font-size: 0.9rem;
  color: #00c6ff;
}

progress {
  width: 100%;
  height: 22px;
  appearance: none;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 6px rgba(0,0,0,0.6);
}

/* رنگ و انیمیشن داخل Progress */
progress::-webkit-progress-value {
  background: repeating-linear-gradient(
    -45deg,
    #00f5ff,
    #00f5ff 10px,
    #0072ff 10px,
    #0072ff 20px
  );
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.7);
  animation: progressStripe 1s linear infinite;
}
progress::-moz-progress-bar {
  background: repeating-linear-gradient(
    -45deg,
    #00f5ff,
    #00f5ff 10px,
    #0072ff 10px,
    #0072ff 20px
  );
  border-radius: 12px;
  animation: progressStripe 1s linear infinite;
}

/* انیمیشن حرکت راه‌راه */
@keyframes progressStripe {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}

/* دکمه تغییر تم */
.theme-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(8px);
}
.theme-btn:hover {
  background: rgba(0, 200, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.5);
}

/* دارک تم (همون چیزی که داری) */
body.dark-theme {
  background: linear-gradient(135deg, #0a0f1c, #1a2433, #2c5364);
  color: #e0e0e0;
}
body.dark-theme .upload-container {
  background: rgba(20, 20, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
body.dark-theme select {
  background: rgba(30, 30, 30, 0.6);
  color: #fff;
}
body.dark-theme h2 {
  color: #f5faff;
}

/* لایت تم */
body.light-theme {
  background: linear-gradient(135deg, #e0eafc, #cfdef3);
  color: #222;
}
body.light-theme .upload-container {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #222;
}
body.light-theme select {
  background: rgba(255, 255, 255, 0.9);
  color: #222;
}
body.light-theme h2 {
  color: #111;
}

#delete-time {
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, rgba(0,198,255,0.35), rgba(0,114,255,0.35));
  background-size: 200% 200%;
  animation: gradientFlow 6s ease infinite; /* گرادیانت متحرک */
  backdrop-filter: blur(14px) saturate(140%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Vazirmatn", sans-serif;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: all 0.4s ease;
  padding-right: 44px;
  box-shadow: 0 6px 20px rgba(0,198,255,0.35);
  position: relative;
  z-index: 1;
}

/* گرادیانت روان */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#delete-time:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(0,198,255,0.7);
}

#delete-time:focus {
  box-shadow: 0 0 28px rgba(0,198,255,1);
  border: 1px solid rgba(0,198,255,0.7);
}

/* استایل گزینه‌ها */
#delete-time option {
  background: #0f2027; /* پس‌زمینه دارک مثل تم بدنه */
  color: #fff;
  font-family: "Vazirmatn", sans-serif;
  font-weight: 500;
  padding: 12px;
  border-radius: 10px;
}

/* فلش سفارشی جذاب‌تر */
#delete-time {
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24'>\
  <defs>\
    <linearGradient id='grad1' x1='0%' y1='0%' x2='100%' y2='0%'>\
      <stop offset='0%' style='stop-color:%2300c6ff;stop-opacity:1'/>\
      <stop offset='100%' style='stop-color:%230072ff;stop-opacity:1'/>\
    </linearGradient>\
  </defs>\
  <path fill='url(%23grad1)' d='M7 10l5 5 5-5z'/>\
  </svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 22px;
}



/* انیمیشن نمایشی */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ریسپانسیو */
@media (max-width: 480px) {
  body {
    padding: 15px;
    font-size: 14px;
  }
  
  .upload-container {
    padding: 20px 25px;
    max-width: 100%;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
  }
  
  h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  
  label.custom-file-upload {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  #file-chosen {
    font-size: 0.9rem;
  }
  
  button {
    padding: 12px 0;
    font-size: 1rem;
  }
  
  select {
    font-size: 13px;
    padding: 10px;
  }
  
  .message {
    font-size: 0.9rem;
    padding: 12px;
  }
  
  progress {
    height: 16px;
  }
}

