/* ============================================================
   Aima Eman — Admin Panel Styles
   ============================================================ */

.admin-body {
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(45,212,191,0.08), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(230,192,104,0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 40%, var(--bg-0));
  background-attachment: fixed;
}

/* ============ LOGIN ============ */
.login-wrap {
  position: relative; z-index: 2;
  min-height: 100vh; display: grid; place-items: center;
  padding: 40px 20px;
}
.login-card {
  background: var(--glass-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 44px 38px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow); width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 6px;
}
.login-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: 1.4rem; font-weight: 600;
  margin-bottom: 20px;
}
.login-card h1 {
  font-family: var(--f-display); font-size: 1.8rem; font-weight: 600;
  margin-bottom: 4px;
}
.login-sub { color: var(--ink-mute); font-size: 0.9rem; margin-bottom: 24px; }
.login-err {
  background: rgba(255,138,138,0.12); border: 1px solid rgba(255,138,138,0.3);
  border-radius: 10px; padding: 12px 16px; color: #ff8a8a; font-size: 0.88rem;
  margin-bottom: 16px;
}
.login-btn { width: 100%; justify-content: center; margin-top: 10px; }
.login-back {
  text-align: center; color: var(--ink-mute); font-size: 0.85rem;
  margin-top: 20px; transition: color 0.3s;
}
.login-back:hover { color: var(--teal-soft); }

/* ============ ADMIN DASHBOARD ============ */
.admin-section {
  position: relative; z-index: 2;
  max-width: 900px; margin: 0 auto;
  padding: 120px var(--pad) 60px;
}
.admin-head { margin-bottom: 40px; }
.admin-head h1 {
  font-family: var(--f-display); font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 600; margin-bottom: 8px;
}
.admin-head p { color: var(--ink-soft); }

.admin-card {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 4vw, 38px);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  margin-bottom: 30px;
}
.admin-card h2 {
  font-family: var(--f-display); font-size: 1.4rem; font-weight: 600;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.admin-form .field { margin-bottom: 22px; }
.admin-form .field small { display: block; margin-top: 6px; color: var(--ink-mute); font-size: 0.78rem; }

/* upload zone */
.upload-zone {
  position: relative; border: 2px dashed var(--line-strong);
  border-radius: 16px; padding: 40px 20px; text-align: center;
  transition: border-color 0.3s, background 0.3s; cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--teal); background: rgba(45,212,191,0.05);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.upload-zone-text { pointer-events: none; }
.upload-ico {
  display: inline-block; font-size: 2.2rem; color: var(--teal-soft);
  margin-bottom: 12px;
}
.upload-zone-text p { color: var(--ink-soft); margin-bottom: 6px; }
.upload-zone-text small { color: var(--ink-mute); }

.upload-progress {
  margin-top: 16px; position: relative; height: 28px;
  background: var(--bg-2); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line);
}
.upload-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transition: width 0.2s; border-radius: 14px;
}
#uploadPct {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 0.82rem; font-weight: 500; color: var(--ink);
}
.upload-preview {
  margin-top: 16px; width: 100%; max-height: 240px;
  border-radius: 12px; border: 1px solid var(--line);
}

/* video list */
.admin-video-list { display: grid; gap: 14px; }
.admin-empty { color: var(--ink-mute); text-align: center; padding: 30px; }
.admin-video-item {
  display: flex; align-items: center; gap: 16px;
  background: rgba(11,31,42,0.5); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px;
  transition: border-color 0.3s;
}
.admin-video-item:hover { border-color: var(--line-strong); }
.admin-thumb {
  width: 100px; height: 56px; border-radius: 8px; object-fit: cover;
  flex-shrink: 0; background: var(--bg-2); border: 1px solid var(--line);
}
.admin-video-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.admin-video-initials { font-family: var(--f-display); font-weight: 600; color: var(--gold); font-size: 1.05rem; }
.admin-video-activity { color: var(--ink); font-size: 0.92rem; }
.admin-video-date { color: var(--ink-mute); font-size: 0.78rem; }
.admin-video-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* responsive */
@media (max-width: 640px) {
  .admin-video-item { flex-direction: column; align-items: stretch; }
  .admin-video-actions { justify-content: flex-end; }
  .admin-thumb { width: 100%; height: 120px; }
}
