
/* ══════════════════════════════════════════════════════════════════════
   ADMIN FULL-SCREEN SECURE LOGIN BARRIER
   ══════════════════════════════════════════════════════════════════════ */
.admin-auth-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: #090D16;
  background-image: radial-gradient(circle at 50% 30%, rgba(52, 211, 153, 0.12) 0%, #090D16 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-auth-overlay.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.admin-auth-box {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(52, 211, 153, 0.15);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: fadeInDown 0.3s ease;
}




.admin-auth-box {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(52, 211, 153, 0.15);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: fadeInDown 0.3s ease;
}

.admin-auth-logo {
  margin-bottom: 2rem;
}

.admin-auth-box .form-group {
  text-align: left;
  margin-bottom: 1.25rem;
}

.admin-auth-box .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #CBD5E1;
  margin-bottom: 0.4rem;
}

.admin-auth-box .form-control {
  width: 100%;
  background: #090D14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  color: #FFF;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

.admin-auth-box .form-control:focus {
  border-color: #34D399;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.25);
}

/* Admin Control Center Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }



/* ══════════════════════════════════════════════════════════════════════
   MASTER DUAL THEME ENGINE (DARK OBSIDIAN / LIGHT CLEAN LUXE)
   ══════════════════════════════════════════════════════════════════════ */
:root, [data-theme="dark"], body[data-theme="dark"] {
  --admin-primary: #34D399;
  --admin-accent: #10B981;
  --bg: #080C14;
  --sidebar-bg: #0D121A;
  --card-bg: #111824;
  --card-inner-bg: rgba(255, 255, 255, 0.04);
  --input-bg: #090D14;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --border: rgba(255, 255, 255, 0.08);
  --table-th-bg: #162030;
  --modal-bg: #111824;
  --btn-cancel-bg: rgba(255, 255, 255, 0.08);
  --btn-cancel-text: #CBD5E1;
  --radius: 14px;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
}

[data-theme="light"], body[data-theme="light"] {
  --admin-primary: #059669;
  --admin-accent: #10B981;
  --bg: #F8FAFC;
  --sidebar-bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-inner-bg: #F1F5F9;
  --input-bg: #FFFFFF;
  --text: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --table-th-bg: #F1F5F9;
  --modal-bg: #FFFFFF;
  --btn-cancel-bg: #E2E8F0;
  --btn-cancel-text: #0F172A;
}

body {
  font-family: var(--font-main);
  background: var(--bg) !important;
  color: var(--text) !important;
  display: flex;
  min-height: 100vh;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Sidebar */
.sidebar {
  width: 270px;
  background: var(--sidebar-bg) !important;
  border-right: 1px solid var(--border) !important;
  color: var(--text) !important;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.sidebar-btn {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  text-align: left;
}

.sidebar-btn:hover {
  background: var(--card-inner-bg);
  color: var(--text);
}

.sidebar-btn.active {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%) !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
  color: var(--admin-primary) !important;
  font-weight: 700;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2.5rem 3rem;
  background: var(--bg) !important;
  overflow-y: auto;
  transition: all 0.2s ease;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.header-title h1 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text) !important;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.header-title p {
  color: var(--text-muted) !important;
  font-size: 0.92rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--card-inner-bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.theme-toggle-btn:hover {
  transform: scale(1.04);
  border-color: var(--admin-primary);
}

/* Admin Card Component */
.admin-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px;
  padding: 2.25rem;
  color: var(--text) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.75rem;
}

.admin-card-inner {
  background: var(--card-inner-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px;
  padding: 1.5rem;
  color: var(--text) !important;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text) !important;
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  background: var(--input-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  color: var(--text) !important;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--admin-primary) !important;
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.2);
}

/* Buttons */
.btn-admin {
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-admin-accent {
  background: linear-gradient(135deg, #34D399 0%, #059669 100%) !important;
  color: #042F2E !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-admin-accent:hover {
  background: linear-gradient(135deg, #6EE7B7 0%, #10B981 100%) !important;
  transform: translateY(-2px);
}

.btn-admin-cancel {
  background: var(--btn-cancel-bg) !important;
  color: var(--btn-cancel-text) !important;
  border: 1px solid var(--border);
}

.btn-admin-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Data Tables */
.data-table-container {
  background: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: var(--table-th-bg) !important;
  padding: 1.1rem 1.4rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted) !important;
  font-weight: 800;
  border-bottom: 1px solid var(--border) !important;
}

.data-table td {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-size: 0.92rem;
}

/* Modals */
.modal-admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(4, 7, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-admin-overlay.active {
  display: flex !important;
}

.modal-admin-box {
  background: var(--modal-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 24px;
  padding: 2.5rem;
  width: 100%;
  color: var(--text) !important;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

.modal-inner-card {
  background: var(--card-inner-bg) !important;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border) !important;
  margin-bottom: 1.25rem;
}



.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 4px; }
.form-control { width: 100%; padding: 0.65rem 0.85rem; border: 1.5px solid var(--border); border-radius: 6px; font-family: var(--font-main); }

/* ══════════════════════════════════════════════════════════════════════
   ULTRA-PREMIUM SCIENTIFIC PUBLISHING STUDIO (MEDIUM / NOTION LUXE THEME)
   ══════════════════════════════════════════════════════════════════════ */
#articleStudioOverlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: #090D14;
  background-image: radial-gradient(circle at 50% 0%, rgba(52, 211, 153, 0.08) 0%, transparent 60%);
  overflow-y: auto;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #E2E8F0;
}

.studio-navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(9, 13, 20, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.studio-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.studio-btn-back:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
  transform: translateX(-2px);
}

.studio-btn-publish {
  background: linear-gradient(135deg, #34D399 0%, #059669 100%);
  color: #042F2E;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.7rem 1.8rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
  transition: all 0.25s ease;
}

.studio-btn-publish:hover {
  background: linear-gradient(135deg, #6EE7B7 0%, #10B981 100%);
  box-shadow: 0 8px 30px rgba(52, 211, 153, 0.55);
  transform: translateY(-2px);
}

.studio-workspace-grid {
  max-width: 1380px;
  margin: 2rem auto 5rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2.25rem;
}

.studio-main-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.studio-sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.studio-side-box {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.studio-side-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  color: #94A3B8;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.studio-title-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  padding: 0.5rem 0 1.25rem;
  outline: none;
  line-height: 1.25;
  transition: border-color 0.2s;
}

.studio-title-input:focus {
  border-color: #34D399;
}

.studio-title-input::placeholder {
  color: #475569;
}

.studio-abstract-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #34D399;
  border-radius: 12px;
  padding: 1.25rem;
  color: #CBD5E1;
  font-size: 1.05rem;
  line-height: 1.6;
  outline: none;
  margin: 1.75rem 0;
  transition: all 0.2s;
}

.studio-abstract-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(52, 211, 153, 0.4);
}

/* Custom Quill Dark Luxe Theme */
#quillEditorWrapper {
  background: #0D131F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
}

.ql-toolbar.ql-snow {
  background: #162032 !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0.75rem 1rem !important;
}

.ql-snow .ql-stroke {
  stroke: #94A3B8 !important;
}

.ql-snow .ql-fill {
  fill: #94A3B8 !important;
}

.ql-snow .ql-picker {
  color: #94A3B8 !important;
}

.ql-editor {
  color: #F1F5F9 !important;
  font-size: 1.05rem !important;
  line-height: 1.8 !important;
  min-height: 440px !important;
  padding: 2rem !important;
}

.ql-editor.ql-blank::before {
  color: #475569 !important;
  font-style: normal !important;
}

.studio-field-group {
  margin-bottom: 1.1rem;
}

.studio-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94A3B8;
  margin-bottom: 0.4rem;
}

.studio-field-input {
  width: 100%;
  background: #090D14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #FFF;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}

.studio-field-input:focus {
  border-color: #34D399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.2);
}

@media (max-width: 1080px) {
  .studio-workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive Adaptive Sidebar Logo */
[data-theme="dark"] #sidebarLogoImg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
[data-theme="light"] #sidebarLogoImg {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06));
}
