/* ACADEMIST.com — Auth Modal + Admin Panel Styles */

/* ═══════════ AUTH MODAL ═══════════ */
  .auth-overlay {
    display:none; position:fixed; inset:0; background:rgba(0,0,0,.6);
    z-index:2000; align-items:center; justify-content:center;
    backdrop-filter:blur(4px);
  }
  .auth-overlay.open { display:flex; }
  .auth-box {
    background:var(--white); border-radius:24px; width:90%; max-width:440px;
    overflow:hidden; animation:popIn .3s ease; position:relative;
  }
  .auth-header {
    background:linear-gradient(135deg,var(--ac),var(--er));
    padding:32px 36px 24px; text-align:center;
  }
  .auth-header .auth-logo { display:flex; justify-content:center; gap:5px; margin-bottom:14px; }
  .auth-header .auth-logo .tile { width:30px; height:30px; border-radius:6px; font-size:8px; }
  .auth-header h2 { color:var(--white); font-size:1.3rem; font-weight:900; margin-bottom:4px; }
  .auth-header p { color:rgba(255,255,255,.7); font-size:.8rem; }
  .auth-tabs { display:flex; border-bottom:2px solid #e2e8f0; }
  .auth-tab {
    flex:1; padding:14px; text-align:center; font-family:var(--font);
    font-size:.82rem; font-weight:700; cursor:pointer; border:none;
    background:none; color:var(--muted); border-bottom:3px solid transparent;
    margin-bottom:-2px; transition:color .2s,border-color .2s;
  }
  .auth-tab.active { color:var(--ac); border-bottom-color:var(--ac); }
  .auth-body { padding:28px 36px 32px; }
  .auth-panel { display:none; }
  .auth-panel.active { display:block; }
  .auth-field { margin-bottom:16px; }
  .auth-field label { display:block; font-size:.74rem; font-weight:700; margin-bottom:5px; color:var(--text); }
  .auth-field input, .auth-field select {
    width:100%; padding:11px 14px; border:1.5px solid #d1d5db; border-radius:8px;
    font-family:var(--font); font-size:.85rem; color:var(--text);
    background:var(--bg); transition:border-color .2s;
  }
  .auth-field input:focus, .auth-field select:focus { outline:none; border-color:var(--ac); }
  .auth-field .pw-wrap { position:relative; }
  .auth-field .pw-wrap input { padding-right:42px; }
  .auth-field .pw-toggle {
    position:absolute; right:12px; top:50%; transform:translateY(-50%);
    cursor:pointer; font-size:.9rem; color:var(--muted); background:none; border:none;
  }
  .auth-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; font-size:.75rem; }
  .auth-row a { color:var(--ac); text-decoration:none; font-weight:700; }
  .auth-check { display:flex; align-items:center; gap:7px; }
  .auth-check input[type=checkbox] { width:15px; height:15px; accent-color:var(--ac); }
  .btn-auth {
    width:100%; padding:13px; border-radius:8px; border:none;
    background:var(--ac); color:var(--white); font-family:var(--font);
    font-size:.92rem; font-weight:800; cursor:pointer;
    transition:background .2s,transform .2s; margin-bottom:16px;
  }
  .btn-auth:hover { background:var(--er); transform:translateY(-1px); }
  .auth-divider { text-align:center; font-size:.75rem; color:var(--muted); margin:12px 0; position:relative; }
  .auth-divider::before, .auth-divider::after {
    content:''; position:absolute; top:50%; width:42%; height:1px; background:#e2e8f0;
  }
  .auth-divider::before { left:0; } .auth-divider::after { right:0; }
  .btn-google {
    width:100%; padding:11px; border-radius:8px; border:1.5px solid #d1d5db;
    background:var(--white); font-family:var(--font); font-size:.85rem;
    font-weight:700; cursor:pointer; display:flex; align-items:center;
    justify-content:center; gap:10px; color:var(--text); transition:background .2s;
  }
  .btn-google:hover { background:var(--bg); }
  .auth-msg { font-size:.75rem; color:var(--muted); text-align:center; margin-top:14px; }
  .auth-msg a { color:var(--ac); font-weight:700; text-decoration:none; }
  .auth-close {
    position:absolute; top:14px; right:18px; background:rgba(255,255,255,.2);
    border:none; color:var(--white); font-size:1.1rem; cursor:pointer;
    border-radius:50%; width:28px; height:28px; display:flex;
    align-items:center; justify-content:center; transition:background .2s;
  }
  .auth-close:hover { background:rgba(255,255,255,.35); }
  .input-error { border-color:#ef4444 !important; }
  .field-err { font-size:.7rem; color:#ef4444; margin-top:4px; display:none; }
  .field-err.show { display:block; }
  .pw-strength { height:4px; border-radius:2px; margin-top:6px; transition:all .3s; background:#e2e8f0; }
  .pw-strength.weak { background:#ef4444; width:33%; }
  .pw-strength.medium { background:var(--io); width:66%; }
  .pw-strength.strong { background:var(--mg); width:100%; }

  /* Nav auth buttons */
  .nav-sign-in {
    color:rgba(255,255,255,.8) !important; border:1.5px solid rgba(255,255,255,.3);
    padding:8px 18px; border-radius:6px; font-weight:700 !important;
    transition:border-color .2s,color .2s !important;
  }
  .nav-sign-in:hover { border-color:var(--su) !important; color:var(--su) !important; }
  .nav-admin-btn {
    background:var(--su) !important; color:var(--ti) !important;
    padding:8px 18px; border-radius:6px; font-weight:800 !important;
    font-size:.78rem !important;
  }
  .nav-user-chip {
    background:var(--mg); color:var(--white); padding:6px 14px;
    border-radius:999px; font-size:.75rem; font-weight:700;
    display:inline-flex; align-items:center; gap:6px; cursor:pointer;
    transition: background .2s;
  }
  .nav-user-chip:hover { background: #16a34a; }

  /* ═══════════ ADMIN PANEL ═══════════ */
  .admin-overlay {
    display:none; position:fixed; inset:0; background:rgba(0,0,0,.5);
    z-index:3000; backdrop-filter:blur(3px);
  }
  .admin-overlay.open { display:flex; }
  .admin-drawer {
    position:fixed; top:0; right:0; bottom:0; width:min(820px,95vw);
    background:var(--white); box-shadow:-8px 0 40px rgba(0,0,0,.2);
    display:flex; flex-direction:column; animation:slideInRight .35s ease;
    overflow:hidden;
  }
  @keyframes slideInRight { from{transform:translateX(100%)} to{transform:translateX(0)} }
  .admin-head {
    background:var(--ti); padding:18px 28px;
    display:flex; align-items:center; justify-content:space-between; flex-shrink:0;
  }
  .admin-head h2 { color:var(--white); font-size:1rem; font-weight:900; display:flex; align-items:center; gap:10px; }
  .admin-head h2 span { background:var(--su); color:var(--ti); padding:3px 10px; border-radius:999px; font-size:.65rem; }
  .admin-close { background:rgba(255,255,255,.1); border:none; color:var(--white); font-size:1.2rem; cursor:pointer; border-radius:6px; padding:6px 10px; }
  .admin-close:hover { background:rgba(255,255,255,.2); }
  .admin-body { display:flex; flex:1; overflow:hidden; }
  .admin-sidebar {
    width:200px; background:#f1f5f9; border-right:1px solid #e2e8f0;
    display:flex; flex-direction:column; flex-shrink:0;
  }
  .admin-nav-item {
    display:flex; align-items:center; gap:10px;
    padding:14px 18px; font-size:.8rem; font-weight:700;
    color:var(--muted); cursor:pointer; border:none; background:none;
    text-align:left; border-left:3px solid transparent;
    transition:background .2s,color .2s,border-color .2s; font-family:var(--font);
  }
  .admin-nav-item:hover { background:#e2e8f0; color:var(--text); }
  .admin-nav-item.active { background:var(--white); color:var(--ac); border-left-color:var(--ac); }
  .admin-nav-item .ani { font-size:1rem; }
  .admin-content { flex:1; overflow-y:auto; padding:28px; }
  .admin-section { display:none; }
  .admin-section.active { display:block; }
  .admin-section h3 { font-size:1.1rem; font-weight:900; margin-bottom:6px; }
  .admin-section > p { font-size:.82rem; color:var(--muted); margin-bottom:24px; }

  /* Admin Cards */
  .admin-card {
    background:var(--bg); border:1px solid #e2e8f0; border-radius:14px;
    padding:22px; margin-bottom:18px;
  }
  .admin-card h4 { font-size:.9rem; font-weight:800; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
  .admin-field { margin-bottom:14px; }
  .admin-field label { display:block; font-size:.72rem; font-weight:700; margin-bottom:5px; color:var(--text); }
  .admin-field input, .admin-field select, .admin-field textarea {
    width:100%; padding:9px 12px; border:1.5px solid #d1d5db; border-radius:8px;
    font-family:var(--font); font-size:.82rem; color:var(--text); background:var(--white);
    transition:border-color .2s;
  }
  .admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus { outline:none; border-color:var(--ac); }
  .admin-field textarea { min-height:90px; resize:vertical; }
  .admin-field-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .btn-admin-save {
    padding:10px 24px; border-radius:8px; border:none;
    background:var(--ac); color:var(--white); font-family:var(--font);
    font-size:.82rem; font-weight:800; cursor:pointer; transition:background .2s;
  }
  .btn-admin-save:hover { background:var(--er); }
  .btn-admin-danger {
    padding:10px 24px; border-radius:8px; border:none;
    background:#ef4444; color:var(--white); font-family:var(--font);
    font-size:.82rem; font-weight:800; cursor:pointer;
  }
  .btn-admin-secondary {
    padding:10px 24px; border-radius:8px; border:1.5px solid #d1d5db;
    background:var(--white); color:var(--text); font-family:var(--font);
    font-size:.82rem; font-weight:700; cursor:pointer; transition:background .2s;
  }
  .admin-save-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:6px; }
  .save-feedback { font-size:.74rem; color:var(--mg); font-weight:700; display:none; }
  .save-feedback.show { display:inline; }

  /* Upload zone */
  .upload-zone {
    border:2px dashed #cbd5e1; border-radius:12px; padding:36px;
    text-align:center; cursor:pointer; transition:border-color .2s,background .2s;
    background:var(--white);
  }
  .upload-zone:hover, .upload-zone.drag { border-color:var(--ac); background:rgba(30,58,138,.04); }
  .upload-zone .uz-icon { font-size:2.5rem; margin-bottom:10px; }
  .upload-zone p { font-size:.82rem; color:var(--muted); }
  .upload-zone strong { color:var(--ac); }
  .upload-list { margin-top:14px; }
  .upload-item {
    display:flex; align-items:center; gap:10px;
    background:var(--white); border:1px solid #e2e8f0; border-radius:8px;
    padding:10px 14px; margin-bottom:8px; font-size:.8rem;
  }
  .upload-item .ui-icon { font-size:1.1rem; }
  .upload-item .ui-name { flex:1; font-weight:700; color:var(--text); }
  .upload-item .ui-size { color:var(--muted); font-size:.72rem; }
  .upload-item .ui-status { font-size:.65rem; font-weight:700; padding:3px 8px; border-radius:999px; }
  .ui-done { background:rgba(34,197,94,.1); color:var(--mg); }
  .ui-pending { background:rgba(249,115,22,.1); color:var(--io); }
  .ui-del { background:none; border:none; color:#ef4444; cursor:pointer; font-size:.9rem; }

  /* Stats row */
  .admin-stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:14px; margin-bottom:24px; }
  .admin-stat-card {
    background:var(--white); border:1px solid #e2e8f0; border-radius:12px;
    padding:18px; text-align:center;
  }
  .admin-stat-card strong { display:block; font-size:1.6rem; font-weight:900; color:var(--ac); }
  .admin-stat-card span { font-size:.7rem; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.05em; }

  /* Users table */
  .admin-table { width:100%; border-collapse:collapse; font-size:.78rem; }
  .admin-table th { text-align:left; padding:10px 12px; background:#f1f5f9; font-weight:700; font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
  .admin-table td { padding:11px 12px; border-bottom:1px solid #f1f5f9; color:var(--text); }
  .admin-table tr:last-child td { border-bottom:none; }
  .admin-table tr:hover td { background:#fafafa; }
  .user-role { font-size:.62rem; font-weight:700; padding:3px 8px; border-radius:999px; }
  .role-admin { background:rgba(250,204,21,.2); color:#92701a; }
  .role-student { background:rgba(34,197,94,.1); color:var(--mg); }
  .role-tutor { background:rgba(79,70,229,.1); color:var(--er); }

  /* Colour picker row */
  .color-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:10px; }
  .color-item { text-align:center; }
  .color-item label { font-size:.7rem; font-weight:700; color:var(--muted); display:block; margin-bottom:5px; }
  .color-item input[type=color] { width:100%; height:36px; border:1.5px solid #d1d5db; border-radius:8px; cursor:pointer; padding:2px; }
  .seo-preview {
    background:var(--white); border:1px solid #e2e8f0; border-radius:10px;
    padding:16px; margin-top:12px; font-size:.8rem;
  }
  .seo-preview .sp-title { color:#1a0dab; font-size:.95rem; font-weight:600; margin-bottom:2px; }
  .seo-preview .sp-url { color:#006621; font-size:.75rem; margin-bottom:4px; }
  .seo-preview .sp-desc { color:var(--muted); line-height:1.5; }