/* ========================================================
   ROMANCE MOZHI — ADMIN PANEL STYLESHEET (style.css)
   ======================================================== */

/* --- Reset & Base Styles --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Noto Sans Tamil", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f6f7fb;
  color: #1d2433;
  -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */
.app {
  display: flex;
  min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: 280px;
  flex: 0 0 280px;
  background: #101522;
  color: #dce2ef;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
  transition: transform 0.25s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 24px;
}

.brand-mark,
.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ef789d, #806df2);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(128, 109, 242, 0.35);
}

.brand-name,
.brand b {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.brand-sub,
.brand small {
  display: block;
  font-size: 10px;
  color: #8490a8;
  letter-spacing: 1.4px;
  margin-top: 3px;
  font-weight: 600;
}

/* Navigation Links */
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item,
.nav {
  width: 100%;
  border: 0;
  background: transparent;
  color: #aeb7ca;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.nav-item span,
.nav span {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.nav-item em,
.nav em {
  margin-left: auto;
  font-style: normal;
  background: #293044;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
}

.badge {
  margin-left: auto;
  background: #ef4444;
  color: #fff;
  border-radius: 99px;
  font-size: 11px;
  padding: 3px 8px;
  font-weight: 700;
}

.nav-item:hover,
.nav:hover {
  background: #1d2538;
  color: #fff;
}

.nav-item.active,
.nav.active {
  background: linear-gradient(135deg, #7c3aed, #9047f6);
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

/* Sidebar Footer */
.side-bottom,
.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
}

.admin-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  border-top: 1px solid #20273a;
  color: #fff;
}

.admin-card strong,
.admin-card b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.admin-card small {
  display: block;
  font-size: 11px;
  color: #7e899e;
  margin-top: 2px;
}

.admin-card .dots,
.admin-card span {
  margin-left: auto;
  color: #6b7791;
  font-size: 14px;
}

.avatar,
.top-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8d79ff, #f17c9f);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.live-btn,
.view-site {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #2e384f;
  background: #171d2b;
  color: #cdd4e3;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  transition: background 0.15s ease;
  font-family: inherit;
}

.live-btn:hover,
.view-site:hover {
  background: #232c40;
  color: #fff;
}

/* --- Main Area & Topbar --- */
.main {
  margin-left: 280px;
  width: calc(100% - 280px);
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid #e7e9ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.crumb,
.crumb-top {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #8992a4;
  font-weight: 500;
}

.crumb b {
  color: #c2c7d1;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.top-icon,
.iconbtn {
  border: 0;
  background: #f4f5f8;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #586174;
  font-size: 18px;
  transition: background 0.15s ease;
}

.top-icon:hover,
.iconbtn:hover {
  background: #e8ebf2;
}

.iconbtn i {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef5f7d;
  color: #fff;
  border-radius: 10px;
  font-size: 8px;
  padding: 2px 5px;
  font-style: normal;
}

.user-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.hamb {
  display: none;
}

/* --- Content & Pages --- */
.content,
.page {
  padding: 32px 36px;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* Page Headers & Hero */
.hero {
  background: linear-gradient(120deg, #fff, #f2efff);
  border: 1px solid #ebe8f6;
  border-radius: 18px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.pagehead,
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #8173dc;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero h1,
.pagehead h1,
.page-head h1 {
  margin: 4px 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #121826;
}

.hero p,
.pagehead p,
.page-head p {
  margin: 4px 0 0;
  color: #7a8393;
  font-size: 13px;
}

/* --- Buttons --- */
.primary {
  border: 0;
  background: linear-gradient(135deg, #7769ef, #9b72e9);
  color: #fff;
  border-radius: 9px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(129, 114, 229, 0.25);
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.primary:hover {
  opacity: 0.95;
}

.primary:active {
  transform: translateY(1px);
}

.primary.danger {
  background: #ef4444;
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.25);
}

.primary.gray,
.secondary {
  background: #eef0f5;
  color: #4f586a;
  box-shadow: none;
  border: 0;
  border-radius: 8px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.approve,
.success {
  border: 0;
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: #e8f8ef;
  color: #348e5c;
  font-family: inherit;
}

.danger {
  border: 0;
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: #fff0f1;
  color: #d25b67;
  font-family: inherit;
}

.textbtn {
  border: 0;
  background: none;
  color: #7569d9;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.small-btn {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #e1e4eb;
  background: #fff;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  color: #555e70;
  transition: all 0.15s ease;
}

.small-btn:hover {
  background: #f8f9fc;
  border-color: #cbd2e0;
}

.edit {
  border: 0;
  background: transparent;
  color: #7c3aed;
  font-weight: 700;
  cursor: pointer;
  margin-right: 8px;
  font-size: 12px;
}

.delete {
  border: 0;
  background: transparent;
  color: #ef4444;
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
}

/* --- Cards, Panels & Stats --- */
.panel,
.card,
.table-card,
.simple-card,
.stat {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(31, 41, 55, 0.04);
}

.panel,
.simple-card {
  padding: 22px;
  margin-bottom: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.panel h2,
.simple-card h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 700;
}

.panel h3,
.publish-card h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
}

.panel-head p {
  font-size: 11px;
  color: #929aaa;
  margin: 4px 0 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 18px 0 24px;
}

.stat {
  padding: 20px;
}

.stat span,
.stat small {
  display: block;
  color: #818a9a;
  font-size: 12px;
  font-weight: 500;
}

.stat b,
.stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  margin: 8px 0 0;
  color: #121826;
}

.stat small.green,
.stat small {
  color: #4d9b72;
}

.stat.warn small {
  color: #dc8b3f;
}

.grid2 {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}

/* --- Quick Actions Grid --- */
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick button {
  border: 1px solid #eceef3;
  background: #fbfbfd;
  border-radius: 11px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick button:hover {
  background: #f4f5fa;
  border-color: #dbe0eb;
}

.quick b {
  display: block;
  font-size: 13px;
  margin-top: 6px;
}

.quick small {
  display: block;
  font-size: 11px;
  color: #929aaa;
  margin-top: 2px;
}

/* --- List & Details Items --- */
.list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.list-item {
  padding: 14px 18px;
  border: 1px solid #eceef3;
  border-radius: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  font-size: 13px;
}

.details {
  border-top: 1px solid #eceef2;
  margin-top: 20px;
  padding-top: 20px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  color: #858d9d;
  font-size: 12px;
}

.detail-row strong {
  color: #3f4858;
}

/* --- Toolbars & Form Controls --- */
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.toolbar .search,
.toolbar input {
  flex: 1;
}

.search input,
.toolbar input,
.toolbar select,
.filter,
.field input,
.field select,
.field textarea,
.modal input,
.modal select,
.modal textarea,
.sidepanel input,
.sidepanel select,
.settings-grid input,
.settings-grid select {
  border: 1px solid #dfe2e9;
  border-radius: 9px;
  background: #fff;
  padding: 10px 14px;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: #333d4d;
  transition: border-color 0.15s ease;
}

.search input:focus,
.toolbar input:focus,
.toolbar select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.modal input:focus,
.modal select:focus,
.modal textarea:focus {
  border-color: #806df2;
}

.search input,
.toolbar select,
.field input,
.field select,
.modal input,
.modal select {
  height: 42px;
}

.toolbar select {
  max-width: 180px;
}

.filter {
  background: #fff;
  border: 1px solid #dfe2e9;
  border-radius: 9px;
  padding: 0 16px;
  height: 42px;
  font-weight: 600;
  color: #555e70;
  cursor: pointer;
}

/* --- Tables & Data Rows --- */
.tablewrap,
.table-card {
  overflow: auto;
  padding: 0;
  background: #fff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th {
  text-align: left;
  background: #fafafd;
  color: #8b93a1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid #edf0f4;
  white-space: nowrap;
}

.table td {
  padding: 15px 18px;
  border-bottom: 1px solid #edf0f4;
  color: #4b5567;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table td small {
  display: block;
  color: #9098a6;
  margin-top: 3px;
  font-size: 11px;
}

.novel-cell,
.novel-row,
.approval,
.queue-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.novel-row,
.approval,
.queue-row {
  padding: 12px 0;
  border-top: 1px solid #eff0f4;
}

.novel-row:first-child,
.approval:first-of-type {
  border-top: 0;
}

.cover {
  width: 44px;
  height: 54px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  flex: none;
  background: linear-gradient(140deg, #f6a1aa, #8aa8f1);
  overflow: hidden;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover.c2 {
  background: linear-gradient(140deg, #7a83dd, #e694ad);
}

.cover.c3 {
  background: linear-gradient(140deg, #4fbea9, #776be7);
}

.novel-cell strong,
.novel-row b,
.approval b,
.queue-row b {
  display: block;
  font-size: 13px;
  color: #1a2233;
}

.novel-cell small,
.novel-row small,
.approval small,
.queue-row small {
  display: block;
  color: #8b94a3;
  font-size: 11px;
  margin-top: 3px;
}

.grow {
  flex: 1;
}

/* Status Pills */
.pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.pill.live,
.pill.published,
.pill.approved {
  background: #e8f8ef;
  color: #278854;
}

.pill.draft {
  background: #f1f2f5;
  color: #64748b;
}

.pill.review,
.pill.pending {
  background: #fff4df;
  color: #b4772f;
}

.pill.rejected {
  background: #fee2e2;
  color: #b91c1c;
}

/* --- Authors, Tags & Testimonials --- */
.author-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.author-grid .panel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-grid .avatar {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.tagbox {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tagbox span {
  background: #f0efff;
  color: #655bd0;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.testimonial-grid,
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quote {
  font-size: 15px;
  line-height: 1.8;
}

.quote b,
.quote span {
  display: block;
  font-size: 12px;
  margin-top: 12px;
}

.quote span {
  color: #e59a39;
}

/* --- Editor Layout & Styles --- */
.editor-layout,
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.editor-card {
  padding: 24px;
}

.field {
  margin-bottom: 18px;
}

.field label,
.modal label,
.sidepanel label,
.modal-card label,
.settings-grid .panel label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #616c80;
  margin: 12px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.toolbar-editor,
.toolbar2 {
  display: flex;
  gap: 4px;
  border: 1px solid #e0e2e8;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  padding: 8px 12px;
  background: #fafafd;
  align-items: center;
}

.toolbar-editor button,
.toolbar2 button {
  border: 0;
  background: #f3f4f8;
  border-radius: 6px;
  width: 34px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 700;
  color: #4b5568;
}

.toolbar-editor button:hover,
.toolbar2 button:hover {
  background: #e6e9f2;
}

.toolbar-editor span,
.toolbar2 span {
  color: #cbd2e0;
  margin: 0 4px;
}

.editor textarea,
.textarea,
#editor {
  width: 100%;
  min-height: 380px;
  border: 1px solid #e0e2e8;
  border-radius: 0 0 9px 9px;
  padding: 20px;
  font: 15px/1.85 "Noto Sans Tamil", Inter, sans-serif;
  color: #242c3d;
  outline: none;
  background: #fff;
  resize: vertical;
}

.editor-foot {
  display: flex;
  justify-content: space-between;
  color: #9299a6;
  font-size: 11px;
  padding-top: 10px;
}

.smallarea {
  width: 100%;
  height: 90px;
  border: 1px solid #dfe2e9;
  border-radius: 8px;
  padding: 10px;
  resize: none;
}

/* --- Modals & Overlays --- */
.modal-backdrop,
.modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 20px;
}

.hidden {
  display: none !important;
}

.modal {
  display: none;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop:not(.hidden) {
  display: grid;
}

.modal-card,
#modalBox {
  background: #fff;
  width: min(580px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: 30px 32px;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
}

.modal-card h2,
#modalBox h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: #121826;
}

.modal-card p,
#modalBox p {
  color: #858d9d;
  font-size: 13px;
  margin: 0 0 20px;
}

.modal-close,
.close {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 0;
  background: #f2f3f6;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
  color: #6a7385;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.modal-close:hover,
.close:hover {
  background: #e4e6ed;
}

.modal .two,
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.full {
  width: 100%;
  margin-top: 16px;
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* --- Toast Notifications --- */
#toast,
.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #182033;
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 80;
  transition: all 0.2s ease;
}

.showtoast,
.toast.show {
  display: block !important;
  opacity: 1;
  transform: none;
}

/* Empty & Loading States */
.empty {
  padding: 45px;
  text-align: center;
  color: #9299a8;
  font-size: 13px;
}

.loading {
  padding: 35px;
  text-align: center;
  color: #7b8495;
}

.error {
  padding: 16px 20px;
  border-radius: 10px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 13px;
  margin: 12px 0;
}

/* ========================================================
   ADMIN LOGIN OVERLAY & AUTHENTICATION STYLES
   ======================================================== */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, #201a35 0%, #0d111b 100%);
  padding: 24px;
  font-family: Inter, "Noto Sans Tamil", system-ui, sans-serif;
  color: #fff;
}

.admin-login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(22, 28, 45, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
}

.admin-login-header {
  text-align: center;
  margin-bottom: 24px;
}

.admin-logo-large {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ef789d, #806df2);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(239, 120, 157, 0.35);
}

.admin-login-header h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #ffffff;
}

.admin-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #d1b9ff;
  background: rgba(128, 109, 242, 0.2);
  border: 1px solid rgba(128, 109, 242, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.admin-login-header p {
  color: #94a3b8;
  font-size: 13px;
  margin: 0;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-login-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.admin-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-input-group label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.admin-input-group input {
  width: 100%;
  height: 46px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.admin-input-group input:focus {
  border-color: #806df2;
}

.admin-login-btn {
  height: 48px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #ef789d, #806df2);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(128, 109, 242, 0.35);
  margin-top: 6px;
  font-family: inherit;
  transition: opacity 0.15s ease;
}

.admin-login-btn:hover {
  opacity: 0.95;
}

.admin-back-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  height: 42px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.admin-logout-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ========================================================
   RESPONSIVE MEDIA QUERIES
   ======================================================== */
@media (max-width: 1050px) {
  .sidebar {
    width: 250px;
    flex-basis: 250px;
  }
  .main {
    margin-left: 250px;
    width: calc(100% - 250px);
  }
  .content,
  .page {
    padding: 26px;
  }
  .editor-grid,
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
    width: 100%;
  }
  .hamb {
    display: block;
    border: 0;
    background: none;
    font-size: 22px;
    margin-right: 14px;
    cursor: pointer;
  }
  .topbar {
    padding: 0 18px;
  }
  .user-mini span {
    display: none;
  }
  .content,
  .page {
    padding: 20px 16px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .grid2,
  .testimonial-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .quick {
    grid-template-columns: 1fr 1fr;
  }
  .author-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
  }
  .hero h1,
  .pagehead h1,
  .page-head h1 {
    font-size: 23px;
  }
  .pagehead,
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .pagehead .primary,
  .page-head .primary {
    white-space: nowrap;
  }
  .queue-row {
    flex-wrap: wrap;
  }
  .queue-row .grow {
    min-width: 65%;
  }
  .queue-row button {
    margin-left: 0;
  }
  .tablewrap,
  .table-card {
    overflow-x: auto;
  }
  .table {
    min-width: 700px;
  }
  .modal .two,
  .two {
    grid-template-columns: 1fr;
  }
  .actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 500px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 14px;
  }
  .stat b,
  .stat strong {
    font-size: 22px;
  }
  .quick {
    grid-template-columns: 1fr;
  }
  .top-actions .iconbtn:nth-child(2) {
    display: none;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input,
  .search {
    min-width: 100%;
    max-width: none;
  }
  .toolbar select {
    max-width: none;
    width: 100%;
  }
}
.toolbar {
  display: flex;
  gap: 10px;
  padding: 15px;
}

.toolbar button {
  width: 55px;
  height: 50px;
  border: 0;
  border-radius: 10px;
  background: #f5f5f5;
  font-size: 20px;
  cursor: pointer;
}

#editor {
  min-height: 200px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  outline: none;
}

/* ========================================================
   ADMIN LOGIN OVERLAY & PROFILE STYLES
   ======================================================== */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 20% 20%, #201a35 0%, #0d111b 100%);
  padding: 24px;
  font-family: Inter, "Noto Sans Tamil", sans-serif;
  color: #fff;
}

.admin-login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(22, 28, 45, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
}

.admin-login-header {
  text-align: center;
  margin-bottom: 24px;
}

.admin-logo-large {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ef789d, #806df2);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(239, 120, 157, 0.35);
}

.admin-login-header h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #ffffff;
}

.admin-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #d1b9ff;
  background: rgba(128, 109, 242, 0.2);
  border: 1px solid rgba(128, 109, 242, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.admin-login-header p {
  color: #94a3b8;
  font-size: 13px;
  margin: 0;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-login-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.admin-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-input-group label {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.admin-input-group input {
  width: 100%;
  height: 46px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.admin-login-btn {
  height: 48px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #ef789d, #806df2);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(128, 109, 242, 0.35);
  margin-top: 6px;
}

.admin-back-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  height: 42px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.admin-logout-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}