/* حذف کادر آبی و تاپ هایتلایت */
* {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.no-focus {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* استایل کلی */
body {
  font-family: 'Bebas Neue', sans-serif;
  background: #121212;
  color: #fff;
  margin: 0;
  padding: 20px;
  direction: rtl;
  text-align: center;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}

.container {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

.container h1 {
  color: #667eea;
  font-size: 28px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

/* چوز فایل (فایل آپلود) */
.form-group {
  margin-bottom: 20px;
  text-align: right;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #ccc;
  font-size: 16px;
}

.form-group input[type="file"] {
  padding: 12px;
  border: 1px solid #333;
  border-radius: 6px;
  background: #222;
  color: #fff;
  width: 100%;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.form-group input[type="file"]:hover {
  border-color: #667eea;
  background: #282828;
}

/* دکمه آپلود */
.btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.btn:hover {
  background: #556cd6;
  transform: translateY(-1px);
}

/* پیشرفت آپلود */
#progress {
  margin-top: 20px;
  color: #fff;
  font-weight: 500;
  display: none;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #333;
  border-radius: 6px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #667eea;
  width: 0%;
  transition: width 0.3s ease;
}

#percent {
  font-weight: 600;
  color: #667eea;
}

/* نتیجه و لینک */
#result {
  margin-top: 30px;
  text-align: right;
  display: none;
}

#result h2 {
  color: #667eea;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

#link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  display: block;
  margin: 10px 0;
  transition: color 0.3s;
  padding: 10px;
  background: #222;
  border-radius: 6px;
  word-break: break-all;
  font-family: monospace;
  border: 1px solid #333;
  overflow: hidden;
  text-overflow: ellipsis;
}

#link:hover {
  color: #556cd6;
}

/* دکمه کپی */
#copyBtn {
  background: #667eea;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

#copyBtn:hover {
  background: #556cd6;
  transform: translateY(-1px);
}

/* دکمه کنسل (X) */
#cancelBtn {
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

#cancelBtn:hover {
  background: #e63939;
  transform: translateY(-1px);
}

/* پلیر */
#player {
  margin-top: 20px;
  text-align: center;
}

#player img,
#player video,
#player audio {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* موبایل: بهبود کاربردی و خوانایی */
@media (max-width: 600px) {
  .container {
    padding: 20px;
    width: 95%;
  }

  .container h1 {
    font-size: 24px;
  }

  .form-group label {
    font-size: 15px;
  }

  /* تنظیم مرتب‌تر باکس چوز فایل در موبایل */
  .form-group input[type="file"] {
    font-size: 15px;
    padding: 12px 10px; /* افزایش padding افقی برای کمی فاصله گرفتن از لبه‌ها */
    border: 1px solid #333;
    border-radius: 6px;
    background: #222;
    color: #fff;
    width: 100%;
    box-sizing: border-box; /* اطمینان از اینکه padding به عرض 100% اضافه نشود */
  }

  .btn {
    font-size: 15px;
    padding: 10px 18px;
  }

  #result h2 {
    font-size: 16px;
  }

  #link {
    font-size: 15px;
    padding: 8px;
  }

  #copyBtn {
    font-size: 13px;
    padding: 7px 12px;
  }

  #cancelBtn {
    font-size: 13px;
    padding: 6px 10px;
  }
}
