/* =======================================
   أداة عجلة النقط — CSS خاص بنموذج الرفع
   ======================================= */

/* ── منطقة الرفع ── */
.wheel-upload-wrap {
  max-width: 680px;
  margin: 0 auto;
}

.level-select-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  justify-content: center;
}

.level-btn {
  flex: 1;
  max-width: 160px;
  padding: 14px 10px;
  border-radius: 14px;
  border: 2px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.level-btn:hover {
  border-color: #6c63ff;
  background: #f5f3ff;
  color: #6c63ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(108,99,255,.15);
}
.level-btn.active {
  border-color: #6c63ff;
  background: linear-gradient(135deg, #6c63ff, #4facfe);
  color: #fff;
  box-shadow: 0 4px 18px rgba(108,99,255,.35);
}
.level-btn .level-icon { font-size: 1.6rem; }
.level-btn .level-hint { font-size: .8rem; opacity: .8; }

/* ── منطقة السحب والإفلات ── */
.wheel-drop-zone {
  border: 2.5px dashed #d1d5db;
  border-radius: 20px;
  padding: 44px 20px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  transition: all .25s;
  margin-bottom: 20px;
}
.wheel-drop-zone:hover,
.wheel-drop-zone.dragging {
  border-color: #6c63ff;
  background: #f5f3ff;
}
.wheel-drop-zone .dz-icon { font-size: 3rem; margin-bottom: 10px; }
.wheel-drop-zone p { color: #6b7280; margin: 0; }
.wheel-drop-zone p.dz-hint { font-size: .85rem; margin-top: 4px; color: #9ca3af; }

/* ── معلومات الملف ── */
.file-selected-info {
  display: none;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
  align-items: center;
  gap: 12px;
}
.file-selected-info.show { display: flex; }
.file-selected-info .fi-name { font-weight: 700; color: #166534; flex: 1; }
.file-selected-info .fi-size { font-size: .85rem; color: #4b7c5e; }
.fi-remove {
  background: none; border: none; cursor: pointer;
  color: #dc2626; font-size: 1.1rem; padding: 4px;
}

/* ── زر المعالجة ── */
.btn-process-wheel {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #6c63ff, #4facfe);
  color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(108,99,255,.35);
}
.btn-process-wheel:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(108,99,255,.45);
}
.btn-process-wheel:disabled {
  opacity: .5; cursor: not-allowed; transform: none;
}

/* ── شريط التقدم ── */
.wheel-progress {
  display: none;
  margin-top: 16px;
  background: #e5e7eb;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.wheel-progress.show { display: block; }
.wheel-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6c63ff, #4facfe);
  border-radius: 999px;
  transition: width .3s;
  animation: progressShimmer 1.5s linear infinite;
  width: 0%;
}
@keyframes progressShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ── بطاقة الجاهزية ── */
.wheel-ready-card {
  display: none;
  text-align: center;
  padding: 40px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #020210, #0d0d3a);
  border: 2px solid rgba(108,99,255,.4);
  box-shadow: 0 8px 40px rgba(108,99,255,.2);
  margin-top: 20px;
}
.wheel-ready-card.show { display: block; }

.ready-icon { font-size: 3.5rem; margin-bottom: 12px; }
.ready-title {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.ready-count {
  font-size: 1rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 24px;
}

.btn-open-wheel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #6c63ff, #4facfe);
  color: #fff;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 0 30px rgba(108,99,255,.5);
  text-decoration: none;
  animation: btnPulse 2s ease-in-out infinite;
}
@keyframes btnPulse {
  0%,100% { box-shadow: 0 0 20px rgba(108,99,255,.4); }
  50%      { box-shadow: 0 0 50px rgba(108,99,255,.8), 0 0 80px rgba(79,172,254,.3); }
}
.btn-open-wheel:hover {
  transform: scale(1.05);
}

.btn-reset-upload {
  margin-top: 14px;
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.5);
  padding: 8px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
}
.btn-reset-upload:hover {
  border-color: rgba(255,255,255,.5);
  color: rgba(255,255,255,.8);
}

/* ── رسالة الخطأ ── */
.wheel-error {
  display: none;
  background: #fef2f2;
  border: 1.5px solid #fecaca;
  border-radius: 14px;
  padding: 14px 18px;
  color: #991b1b;
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
}
.wheel-error.show { display: block; }
