/* ==========================================================================
   ISSCLUB - Comprehensive Admin Panel & Website Editor Styles
   Brand Palette: Deep Navy (#1b2a5b, #0e1738), Tangerine (#e8652a, #f3733b),
   Emerald (#10b981), Amber (#f59e0b), Slate (#0f172a, #334155, #64748b, #f8fafc)
   ========================================================================== */

:root {
  --admin-navy-dark: #0b1329;
  --admin-navy: #131d3b;
  --admin-navy-light: #1b2a5b;
  --admin-primary: #1b2a5b;
  --admin-secondary: #e8652a;
  --admin-secondary-hover: #d55319;
  --admin-secondary-light: #fff2eb;
  --admin-success: #10b981;
  --admin-warning: #f59e0b;
  --admin-danger: #ef4444;
  --admin-info: #0ea5e9;
  
  --admin-bg: #f4f6fa;
  --admin-card-bg: #ffffff;
  --admin-border: #e2e8f0;
  --admin-border-light: #f1f5f9;
  
  --admin-text-main: #0f172a;
  --admin-text-muted: #64748b;
  --admin-text-light: #94a3b8;
  
  --admin-sidebar-w: 260px;
  --admin-header-h: 68px;
  --admin-radius: 10px;
  --admin-radius-sm: 6px;
  --admin-radius-lg: 16px;
  --admin-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --admin-shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
  --admin-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body.admin-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ==========================================================================
   LOGIN SCREEN
   ========================================================================== */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top right, #1b2a5b, #0b1329 80%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.login-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-radius: var(--admin-radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  animation: adminFadeUp 0.4s ease-out;
}
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.login-logo img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.login-brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--admin-navy);
  letter-spacing: -0.5px;
}
.login-brand-title span {
  color: var(--admin-secondary);
}
.login-badge {
  display: inline-block;
  background: var(--admin-secondary-light);
  color: var(--admin-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1.8rem;
}
.login-form .form-group {
  text-align: left;
  margin-bottom: 1.25rem;
}
.login-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-navy);
  margin-bottom: 0.4rem;
}
.login-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--admin-transition);
}
.login-input:focus {
  border-color: var(--admin-secondary);
  box-shadow: 0 0 0 3px rgba(232, 101, 42, 0.15);
}
.btn-login {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--admin-secondary), #f3733b);
  color: #fff;
  border: none;
  border-radius: var(--admin-radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--admin-transition);
  box-shadow: 0 4px 14px rgba(232, 101, 42, 0.3);
  margin-top: 0.5rem;
}
.btn-login:hover {
  background: linear-gradient(135deg, #d55319, var(--admin-secondary));
  transform: translateY(-1px);
}
.login-hint {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--admin-text-muted);
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: var(--admin-radius-sm);
  border: 1px dashed var(--admin-border);
}
.login-hint strong {
  color: var(--admin-navy);
}

/* ==========================================================================
   ADMIN LAYOUT
   ========================================================================== */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.admin-sidebar {
  width: var(--admin-sidebar-w);
  background: linear-gradient(180deg, var(--admin-navy) 0%, var(--admin-navy-dark) 100%);
  color: #fff;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: var(--admin-transition);
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}
.sidebar-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.sidebar-brand h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.sidebar-brand h2 span {
  color: var(--admin-secondary);
}
.sidebar-brand p {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.nav-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 1px;
  padding: 0.6rem 0.8rem 0.3rem;
  margin-top: 0.6rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--admin-radius-sm);
  transition: var(--admin-transition);
  margin-bottom: 0.25rem;
  cursor: pointer;
  position: relative;
}
.sidebar-link i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
  color: #94a3b8;
  transition: var(--admin-transition);
}
.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.sidebar-link:hover i {
  color: var(--admin-secondary);
}
.sidebar-link.active {
  background: linear-gradient(135deg, var(--admin-secondary), #f3733b);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(232, 101, 42, 0.35);
}
.sidebar-link.active i {
  color: #fff;
}
.sidebar-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

/* --- Collapsible sub-navigation (Manage Website) --- */
.sidebar-parent-link {
  justify-content: flex-start;
}
.sidebar-parent-link span {
  flex: 1;
}
.nav-chevron {
  font-size: 0.68rem !important;
  width: auto !important;
  margin-left: auto;
  color: #64748b !important;
  transition: transform 0.25s ease !important;
}
.sidebar-parent-link.open .nav-chevron {
  transform: rotate(90deg);
  color: var(--admin-secondary) !important;
}
.sidebar-parent-link.open {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.sidebar-sub-group {
  overflow: hidden;
  margin-bottom: 0.25rem;
  border-left: 2px solid rgba(232, 101, 42, 0.35);
  margin-left: 0.5rem;
  padding-left: 0.25rem;
}
.sidebar-sub-link {
  font-size: 0.83rem !important;
  padding: 0.55rem 0.75rem 0.55rem 1rem !important;
  color: #94a3b8 !important;
  margin-bottom: 0.1rem !important;
  border-radius: 4px !important;
}
.sidebar-sub-link i {
  font-size: 0.85rem !important;
  width: 18px !important;
}
.sidebar-sub-link:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #e2e8f0 !important;
}
.sidebar-sub-link.active {
  background: rgba(232, 101, 42, 0.18) !important;
  color: var(--admin-secondary) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.sidebar-sub-link.active i {
  color: var(--admin-secondary) !important;
}
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.user-avatar {
  width: 34px;
  height: 34px;
  background: var(--admin-secondary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.user-details {
  line-height: 1.2;
}
.user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}
.user-role {
  font-size: 0.7rem;
  color: #94a3b8;
}
.btn-logout {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--admin-radius-sm);
  transition: var(--admin-transition);
}
.btn-logout:hover {
  color: var(--admin-danger);
  background: rgba(239, 68, 68, 0.15);
}

/* MAIN CONTENT AREA */
.admin-main {
  flex: 1;
  margin-left: var(--admin-sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: var(--admin-transition);
}

/* TOP HEADER */
.admin-header {
  height: var(--admin-header-h);
  background: #fff;
  border-bottom: 1px solid var(--admin-border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.page-title-box h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--admin-navy);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sync-status-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  border: 1px solid #a7f3d0;
}
.sync-status-pill.unsaved {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}
.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--admin-success);
}
.sync-status-pill.unsaved .sync-dot {
  background: var(--admin-warning);
  animation: pulse 1.5s infinite;
}
.db-status-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}
.db-status-pill.online {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.db-status-pill.offline {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.db-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
}
.db-status-pill.online .db-dot {
  background: #10b981;
}
.db-status-pill.offline .db-dot {
  background: #ef4444;
}
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--admin-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--admin-transition);
}
.btn-header-outline {
  background: #fff;
  border-color: var(--admin-border);
  color: var(--admin-navy);
}
.btn-header-outline:hover {
  background: #f8fafc;
  border-color: var(--admin-navy);
}
.btn-header-primary {
  background: linear-gradient(135deg, var(--admin-secondary), #f3733b);
  color: #fff;
  box-shadow: 0 4px 12px rgba(232, 101, 42, 0.25);
}
.btn-header-primary:hover {
  background: linear-gradient(135deg, #d55319, var(--admin-secondary));
  transform: translateY(-1px);
}

/* CONTENT CONTAINER */
.admin-container {
  padding: 2rem;
  flex: 1;
}

/* TAB PANELS */
.tab-content-panel {
  display: none;
  animation: adminFadeIn 0.3s ease-in-out;
}
.tab-content-panel.active {
  display: block;
}

/* ==========================================================================
   DASHBOARD OVERVIEW CARDS
   ========================================================================== */
.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.overview-card {
  background: #fff;
  border-radius: var(--admin-radius);
  padding: 1.5rem;
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--admin-transition);
}
.overview-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--admin-shadow-lg);
}
.overview-card-info h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}
.overview-card-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--admin-navy);
  line-height: 1.1;
}
.overview-card-desc {
  font-size: 0.75rem;
  color: var(--admin-success);
  margin-top: 0.3rem;
  font-weight: 600;
}
.overview-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.icon-navy { background: #eef2ff; color: var(--admin-navy); }
.icon-orange { background: #fff2eb; color: var(--admin-secondary); }
.icon-green { background: #ecfdf5; color: var(--admin-success); }
.icon-blue { background: #f0f9ff; color: var(--admin-info); }

/* QUICK EDIT ACTIONS */
.quick-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.quick-edit-card {
  background: #fff;
  border-radius: var(--admin-radius);
  padding: 1.5rem;
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
  cursor: pointer;
  transition: var(--admin-transition);
  display: flex;
  flex-direction: column;
}
.quick-edit-card:hover {
  border-color: var(--admin-secondary);
  box-shadow: var(--admin-shadow-lg);
  transform: translateY(-2px);
}
.quick-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.quick-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--admin-secondary-light);
  color: var(--admin-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.quick-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--admin-navy);
}
.quick-edit-card p {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  flex: 1;
  margin-bottom: 1rem;
}
.quick-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-secondary);
}

/* ==========================================================================
   CARDS & SECTIONS
   ========================================================================== */
.admin-card {
  background: #fff;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
  margin-bottom: 1.75rem;
  overflow: hidden;
}
.admin-card-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbfd;
}
.admin-card-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.admin-card-title i {
  color: var(--admin-secondary);
  font-size: 1.15rem;
}
.admin-card-title h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--admin-navy);
}
.admin-card-body {
  padding: 1.75rem;
}

/* FORM ELEMENTS */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-navy);
  margin-bottom: 0.4rem;
}
.form-label i {
  color: var(--admin-secondary);
  margin-right: 0.35rem;
}
.form-label .required {
  color: var(--admin-danger);
}
.admin-input,
.admin-select,
.admin-textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1.5px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--admin-text-main);
  background: #fff;
  outline: none;
  transition: var(--admin-transition);
}
.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
  border-color: var(--admin-secondary);
  box-shadow: 0 0 0 3px rgba(232, 101, 42, 0.15);
}
.admin-textarea {
  min-height: 100px;
  resize: vertical;
}
.form-help {
  display: block;
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  margin-top: 0.35rem;
}

/* ==========================================================================
   RICH TEXT EDITOR COMPONENT (WYSIWYG)
   ========================================================================== */
.rich-editor-wrapper {
  border: 1.5px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  overflow: hidden;
  background: #fff;
  transition: var(--admin-transition);
}
.rich-editor-wrapper:focus-within {
  border-color: var(--admin-secondary);
  box-shadow: 0 0 0 3px rgba(232, 101, 42, 0.15);
}
.rich-editor-toolbar {
  background: #f8fafc;
  border-bottom: 1px solid var(--admin-border);
  padding: 0.45rem 0.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.editor-btn {
  background: none;
  border: 1px solid transparent;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  color: var(--admin-text-main);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--admin-transition);
}
.editor-btn:hover {
  background: #e2e8f0;
  color: var(--admin-navy);
}
.editor-btn.active {
  background: var(--admin-navy);
  color: #fff;
}
.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--admin-border);
  margin: 0 0.3rem;
}
.editor-select {
  font-size: 0.8rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--admin-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.editor-color-picker {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--admin-border);
  border-radius: 4px;
  cursor: pointer;
}
.rich-editor-content {
  min-height: 140px;
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  outline: none;
}
.rich-editor-content:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
  cursor: text;
}
.rich-editor-source {
  width: 100%;
  min-height: 140px;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.85rem;
  border: none;
  outline: none;
  background: #1e293b;
  color: #f8fafc;
  display: none;
}

/* ==========================================================================
   IMAGE PICKER & MEDIA LIBRARY
   ========================================================================== */
.image-slot-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1.5px dashed var(--admin-border);
  border-radius: var(--admin-radius-sm);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.image-slot-thumb {
  width: 90px;
  height: 70px;
  border-radius: var(--admin-radius-sm);
  object-fit: cover;
  border: 1px solid var(--admin-border);
  background: #fff;
  flex-shrink: 0;
}
.image-slot-info {
  flex: 1;
  min-width: 220px;
}
.image-slot-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--admin-navy);
  margin-bottom: 0.2rem;
}
.image-slot-url {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  word-break: break-all;
}
.image-slot-url-input {
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  width: 100%;
  margin-top: 0.25rem;
}
.image-slot-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
/* ==========================================================================
   PROFESSIONAL BUTTON SYSTEM
   ========================================================================== */

/* Base button — applied to all .btn-* variants */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success,
.btn-warning,
.btn-sm,
.btn-sm-primary,
.btn-sm-outline,
.btn-sm-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-user-select: none;
  user-select: none;
}
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-danger:focus-visible,
.btn-success:focus-visible {
  outline: 3px solid rgba(232, 101, 42, 0.4);
  outline-offset: 2px;
}

/* --- PRIMARY: Navy gradient — main action (Save, Submit, Confirm) --- */
.btn-primary {
  padding: 0.6rem 1.35rem;
  border-radius: 8px;
  font-size: 0.875rem;
  background: linear-gradient(135deg, #1b2a5b 0%, #243472 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27, 42, 91, 0.35), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #243472 0%, #2d3f8a 100%);
  box-shadow: 0 4px 16px rgba(27, 42, 91, 0.4), inset 0 1px 0 rgba(255,255,255,0.12);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(27, 42, 91, 0.3);
}
.btn-primary i { font-size: 0.82rem; }

/* --- PRIMARY ORANGE: accent action (Add, Create, Publish) --- */
.btn-primary-accent {
  padding: 0.6rem 1.35rem;
  border-radius: 8px;
  font-size: 0.875rem;
  background: linear-gradient(135deg, #e8652a 0%, #f3733b 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(232, 101, 42, 0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary-accent:hover {
  background: linear-gradient(135deg, #d55319 0%, #e8652a 100%);
  box-shadow: 0 4px 16px rgba(232, 101, 42, 0.45);
  transform: translateY(-1px);
}
.btn-primary-accent:active { transform: translateY(0); }

/* --- SECONDARY: Ghost / Outlined — Cancel, Back, View --- */
.btn-secondary {
  padding: 0.58rem 1.3rem;
  border-radius: 8px;
  font-size: 0.875rem;
  background: #fff;
  color: var(--admin-navy);
  border: 1.5px solid var(--admin-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}
.btn-secondary:active { transform: translateY(0); }

/* --- DANGER: Destructive action (Delete, Remove) --- */
.btn-danger {
  padding: 0.6rem 1.35rem;
  border-radius: 8px;
  font-size: 0.875rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}
.btn-danger:active { transform: translateY(0); }

/* --- SUCCESS: Confirm / Approve --- */
.btn-success {
  padding: 0.6rem 1.35rem;
  border-radius: 8px;
  font-size: 0.875rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}
.btn-success:active { transform: translateY(0); }

/* --- WARNING --- */
.btn-warning {
  padding: 0.6rem 1.35rem;
  border-radius: 8px;
  font-size: 0.875rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.btn-warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-1px);
}

/* --- SMALL BUTTONS: Table row actions, inline quick actions --- */
.btn-sm {
  padding: 0.38rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--admin-border);
  background: #fff;
  color: var(--admin-navy);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-sm:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.btn-sm-primary {
  padding: 0.38rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  background: var(--admin-secondary);
  color: #fff;
  border: 1.5px solid transparent;
  box-shadow: 0 2px 6px rgba(232,101,42,0.3);
}
.btn-sm-primary:hover {
  background: var(--admin-secondary-hover);
  box-shadow: 0 3px 10px rgba(232,101,42,0.4);
  transform: translateY(-1px);
}
.btn-sm-outline {
  padding: 0.38rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  background: #fff;
  border: 1.5px solid var(--admin-border);
  color: var(--admin-navy);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-sm-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.btn-sm-danger {
  padding: 0.38rem 0.85rem;
  border-radius: 6px;
  font-size: 0.78rem;
  background: #fff5f5;
  color: var(--admin-danger);
  border: 1.5px solid #fca5a5;
  box-shadow: 0 1px 2px rgba(239,68,68,0.08);
}
.btn-sm-danger:hover {
  background: var(--admin-danger);
  color: #fff;
  border-color: var(--admin-danger);
}

/* --- ICON-ONLY CIRCLE BUTTONS: Edit, Delete, WhatsApp row actions --- */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--admin-border);
  background: #fff;
  color: var(--admin-text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  font-size: 0.8rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  flex-shrink: 0;
}
.btn-icon:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,0.12); }
.btn-icon.edit:hover  { border-color: var(--admin-primary); color: var(--admin-primary); background: #eef2ff; }
.btn-icon.del:hover   { border-color: var(--admin-danger);  color: var(--admin-danger);  background: #fff5f5; }
.btn-icon.view:hover  { border-color: var(--admin-info);    color: var(--admin-info);    background: #f0f9ff; }
.btn-icon.whatsapp:hover { border-color: #25d366; color: #25d366; background: #f0fdf4; }
.btn-icon.print:hover { border-color: #7c3aed; color: #7c3aed; background: #f5f3ff; }

/* Keep old .btn-action as alias */
.btn-action { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--admin-border); background: #fff; color: var(--admin-text-muted); cursor: pointer; transition: all 0.18s ease; text-decoration: none; font-size: 0.8rem; }
.btn-action:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,0.12); }
.btn-action.edit:hover  { border-color: var(--admin-primary); color: var(--admin-primary); background: #eef2ff; }
.btn-action.del:hover   { border-color: var(--admin-danger);  color: var(--admin-danger);  background: #fff5f5; }
.btn-action.whatsapp:hover { border-color: #25d366; color: #25d366; background: #f0fdf4; }

/* MEDIA MODAL GRID */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.5rem;
}
.media-item {
  position: relative;
  border-radius: var(--admin-radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--admin-transition);
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.media-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.media-item-name {
  font-size: 0.7rem;
  padding: 0.3rem 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  background: #fff;
}
.media-item:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.media-item.selected {
  border-color: var(--admin-secondary);
}
.media-item.selected:after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--admin-secondary);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* DROPZONE */
.media-dropzone {
  border: 2px dashed var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 2rem;
  text-align: center;
  background: #fafbfd;
  cursor: pointer;
  transition: var(--admin-transition);
  margin-bottom: 1.5rem;
}
.media-dropzone:hover,
.media-dropzone.dragover {
  border-color: var(--admin-secondary);
  background: var(--admin-secondary-light);
}
.media-dropzone i {
  font-size: 2.2rem;
  color: var(--admin-secondary);
  margin-bottom: 0.6rem;
}
.media-dropzone h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--admin-navy);
}
.media-dropzone p {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
}

/* ==========================================================================
   IMAGE CANVAS EDITOR
   ========================================================================== */
.canvas-editor-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  background: #0f172a;
  border-radius: var(--admin-radius);
  padding: 1.5rem;
  color: #fff;
}
.canvas-viewport {
  background: #020617;
  border-radius: var(--admin-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.canvas-viewport canvas {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.canvas-controls {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--admin-radius-sm);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.canvas-controls h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.canvas-control-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}
.canvas-range {
  width: 100%;
  accent-color: var(--admin-secondary);
}
.canvas-button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* ==========================================================================
   LIVE PREVIEW SPLIT / FULL VIEW
   ========================================================================== */
.preview-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--admin-header-h) - 4rem);
  background: #fff;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  overflow: hidden;
  box-shadow: var(--admin-shadow);
}
.preview-toolbar {
  padding: 0.75rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.preview-page-select {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.preview-devices {
  display: flex;
  background: #e2e8f0;
  border-radius: var(--admin-radius-sm);
  padding: 2px;
}
.device-btn {
  background: none;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--admin-navy);
  cursor: pointer;
  transition: var(--admin-transition);
}
.device-btn.active {
  background: #fff;
  font-weight: 700;
  color: var(--admin-secondary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.preview-frame-wrap {
  flex: 1;
  background: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}
.preview-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: width 0.3s ease;
}

/* ==========================================================================
   REGISTRATIONS / LEADS TABLE
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}
.admin-table th {
  background: #f8fafc;
  color: var(--admin-navy);
  font-weight: 700;
  padding: 0.9rem 1.1rem;
  border-bottom: 2px solid var(--admin-border);
  white-space: nowrap;
}
.admin-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--admin-border-light);
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: #fcfdfe;
}
.badge-reg {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.82rem;
  background: #f1f5f9;
  color: var(--admin-navy);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid var(--admin-border);
}
.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}
.status-new { background: #fee2e2; color: #b91c1c; }
.status-contacted { background: #fef3c7; color: #b45309; }
.status-scheduled { background: #e0e7ff; color: #4338ca; }
.status-enrolled { background: #dcfce7; color: #15803d; }

/* MODALS */
.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.admin-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.admin-modal-card {
  background: #fff;
  border-radius: var(--admin-radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--admin-shadow-lg);
  overflow: hidden;
  animation: adminModalScale 0.25s ease;
}
.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--admin-navy);
}
.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
}
.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  background: #fafbfd;
}

/* TOAST NOTIFICATION */
.admin-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--admin-navy);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--admin-radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 999999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--admin-transition);
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 4px solid var(--admin-secondary);
}
.admin-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ANIMATIONS */
@keyframes adminFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes adminFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes adminModalScale {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .canvas-editor-container {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MANAGEMENT MODULES — Section Panels, Modals, Badges, Sub-tabs
   ========================================================================== */

/* --- Section Panel Container --- */
.section-panel {
  background: var(--admin-card-bg);
  border-radius: var(--admin-radius-lg);
  box-shadow: var(--admin-shadow);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.section-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--admin-border-light);
}
.section-panel-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--admin-navy);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
}
.section-panel-title i { color: var(--admin-secondary); }
.section-panel-desc {
  font-size: 0.875rem;
  color: var(--admin-text-muted);
  margin-top: 0.3rem;
}

/* --- Modal Overlay & Box --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 41, 0.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}
.modal-overlay.show,
.modal-overlay.active { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--admin-radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: adminModalIn 0.22s ease-out;
}
@keyframes adminModalIn {
  from { opacity: 0; transform: scale(0.94) translateY(-12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  background: var(--admin-bg);
  border-radius: var(--admin-radius-lg) var(--admin-radius-lg) 0 0;
}
.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--admin-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--admin-text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: var(--admin-radius-sm);
  transition: var(--admin-transition);
}
.modal-close:hover { background: var(--admin-border); color: var(--admin-text-main); }
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--admin-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: var(--admin-bg);
  border-radius: 0 0 var(--admin-radius-lg) var(--admin-radius-lg);
}

/* --- Badge System --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-success  { background: #d1fae5; color: #065f46; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-info     { background: #dbeafe; color: #1e40af; }
.badge-gray     { background: #f1f5f9; color: #475569; }
.badge-orange   { background: #fff2eb; color: #9a3412; }
.badge-navy     { background: #e0e7ff; color: #3730a3; }
.badge-purple   { background: #f3e8ff; color: #6b21a8; }
.badge-green    { background: #d1fae5; color: #065f46; }
.badge-blue     { background: #dbeafe; color: #1e40af; }

/* --- Secondary Button --- */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--admin-radius-sm);
  border: 1.5px solid var(--admin-border);
  background: #fff;
  color: var(--admin-text-main);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition);
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--admin-border-light); border-color: #cbd5e1; }

/* Small action buttons in table rows */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: #fff;
  color: var(--admin-text-muted);
  cursor: pointer;
  transition: var(--admin-transition);
  text-decoration: none;
  font-size: 0.78rem;
}
.btn-action:hover { background: var(--admin-bg); color: var(--admin-navy); border-color: #94a3b8; }
.btn-action.edit:hover  { border-color: var(--admin-primary); color: var(--admin-primary); }
.btn-action.del:hover   { border-color: var(--admin-danger);  color: var(--admin-danger); }
.btn-action.whatsapp:hover { border-color: #25d366; color: #25d366; }

/* --- Sub-tab Navigation (within a panel) --- */
.subtab-nav {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  background: var(--admin-bg);
  border-radius: var(--admin-radius-sm);
  padding: 0.3rem;
  border: 1px solid var(--admin-border);
}
.subtab-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: var(--admin-text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--admin-radius-sm);
  cursor: pointer;
  transition: var(--admin-transition);
}
.subtab-btn.active {
  background: #fff;
  color: var(--admin-navy);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.subtab-btn:hover:not(.active) {
  background: rgba(255,255,255,0.7);
  color: var(--admin-text-main);
}
.subtab-panel { display: none; }
.subtab-panel.active { display: block; }

/* --- Avatar / Initials --- */
.trainer-avatar, .member-photo-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--admin-navy-light);
  flex-shrink: 0;
  overflow: hidden;
}
.trainer-avatar img, .member-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Photo upload area */
.photo-upload-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px dashed var(--admin-border);
  border-radius: var(--admin-radius);
  margin-bottom: 1rem;
  background: var(--admin-bg);
}
.photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--admin-border);
  background: #e2e8f0;
}

/* --- Specialization Tags --- */
.spec-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.spec-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--admin-border-light);
  color: var(--admin-text-muted);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
}

/* --- Checkbox Group --- */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius-sm);
  background: var(--admin-bg);
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
}

/* --- Category Cards Grid --- */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.category-card {
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 1.25rem;
  text-align: center;
  transition: var(--admin-transition);
  position: relative;
}
.category-card:hover { border-color: var(--admin-secondary); box-shadow: 0 4px 12px rgba(232,101,42,0.12); }
.category-card i { font-size: 1.8rem; color: var(--admin-secondary); margin-bottom: 0.5rem; display: block; }
.category-card h4 { font-size: 0.82rem; font-weight: 600; color: var(--admin-navy); margin: 0; }
.category-card .card-actions { margin-top: 0.75rem; display: flex; gap: 0.35rem; justify-content: center; }

/* --- Event Cards Grid --- */
.event-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.event-card {
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: var(--admin-radius);
  padding: 1.25rem;
  transition: var(--admin-transition);
}
.event-card:hover { box-shadow: var(--admin-shadow-lg); transform: translateY(-2px); }
.event-card-title { font-size: 0.95rem; font-weight: 700; color: var(--admin-navy); }
.event-card-meta { font-size: 0.78rem; color: var(--admin-text-muted); margin-top: 0.2rem; }
.event-progress-bar {
  height: 5px;
  background: var(--admin-border-light);
  border-radius: 999px;
  margin-top: 0.75rem;
  overflow: hidden;
}
.event-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--admin-success), #34d399);
  border-radius: 999px;
}

/* --- Revenue Bar Chart --- */
.revenue-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 180px;
  border-bottom: 2px solid var(--admin-border);
  border-left: 2px solid var(--admin-border);
  padding: 0 0 0 4px;
}
.chart-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.chart-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--admin-secondary) 0%, #f3733b 100%);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.5s ease;
}
.chart-bar:hover { opacity: 0.8; }
.chart-label { font-size: 0.7rem; color: var(--admin-text-muted); margin-top: 4px; font-weight: 600; }
.chart-amount { font-size: 0.65rem; color: var(--admin-text-light); }

/* --- Donut Chart --- */
.donut-chart-wrap { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.donut-chart { width: 120px; height: 120px; border-radius: 50%; flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 0.4rem; }
.donut-legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 500; }
.donut-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

/* --- Attendance --- */
.attendance-list { display: flex; flex-direction: column; gap: 0.5rem; max-height: 360px; overflow-y: auto; }
.attendance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: var(--admin-bg);
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
}
.att-btn {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1.5px solid var(--admin-border);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--admin-transition);
}
.att-btn.present { border-color: var(--admin-success); background: #d1fae5; color: #065f46; }
.att-btn.absent  { border-color: var(--admin-danger);  background: #fee2e2; color: #991b1b; }
.att-btn.late    { border-color: var(--admin-warning); background: #fef3c7; color: #92400e; }

/* --- Outstanding Summary --- */
.outstanding-summary { margin-top: 1.5rem; border-top: 1px solid var(--admin-border); padding-top: 1.25rem; }
.outstanding-summary h4 { font-size: 0.9rem; font-weight: 700; color: var(--admin-navy); margin-bottom: 0.75rem; }

/* Print styles for invoice */
@media print {
  body > *:not(#modal-invoice) { display: none !important; }
  #modal-invoice { position: static !important; background: none !important; display: block !important; }
  #modal-invoice .modal-footer, #modal-invoice .modal-header { display: none !important; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .section-panel { padding: 1rem; }
  .section-panel-header { flex-direction: column; }
  .modal-box { max-width: 100%; }
  .event-cards-grid { grid-template-columns: 1fr; }
  .category-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .subtab-nav { flex-wrap: wrap; }
}

/* ==========================================================================
   ENHANCED DASHBOARD OVERVIEW & OPERATIONS COMMAND CENTER
   ========================================================================== */
.dash-hero-banner {
  background: linear-gradient(135deg, #0b1329 0%, #131d3b 50%, #1e3a8a 100%);
  border-radius: var(--admin-radius-lg);
  padding: 1.75rem 2rem;
  color: #fff;
  margin-bottom: 1.75rem;
  box-shadow: 0 10px 30px rgba(11, 19, 41, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}
.dash-hero-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(232, 101, 42, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.dash-hero-info {
  max-width: 600px;
  position: relative;
  z-index: 2;
}
.dash-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}
.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.dash-hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-hero-desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}
.dash-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}
.dash-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.dash-actions-toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.dash-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: var(--admin-radius-sm);
  cursor: pointer;
  transition: all var(--admin-transition);
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.dash-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.dash-action-btn.btn-primary-action {
  background: linear-gradient(135deg, var(--admin-secondary), #f3733b);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(232, 101, 42, 0.35);
}
.dash-action-btn.btn-primary-action:hover {
  background: linear-gradient(135deg, #d55319, var(--admin-secondary));
  box-shadow: 0 6px 16px rgba(232, 101, 42, 0.45);
}

/* KPI CARDS V2 */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.75rem;
}
.dash-kpi-card {
  background: #fff;
  border-radius: var(--admin-radius);
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--admin-transition);
  position: relative;
  overflow: hidden;
}
.dash-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--kpi-color, var(--admin-navy));
}
.dash-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--admin-shadow-lg);
  border-color: var(--kpi-color, var(--admin-secondary));
}
.dash-kpi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.dash-kpi-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dash-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.dash-kpi-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--admin-navy);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.dash-kpi-sub {
  font-size: 0.76rem;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}
.dash-kpi-trend {
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.trend-up { background: #ecfdf5; color: #065f46; }
.trend-neutral { background: #f1f5f9; color: #475569; }

/* OPERATIONS COMMAND MATRIX */
.dash-matrix-card {
  background: #fff;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
  margin-bottom: 1.75rem;
  overflow: hidden;
}
.dash-matrix-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #fafbfc;
}
.dash-matrix-title-group h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--admin-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-matrix-title-group p {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  margin-top: 0.2rem;
}
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.dash-table th {
  background: #f8fafc;
  color: var(--admin-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.75rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
}
.dash-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--admin-border-light);
  color: var(--admin-text-main);
  vertical-align: middle;
}
.dash-table tr:hover td {
  background: #f8fafc;
}
.dash-area-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--admin-navy);
}
.dash-area-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}
.dash-pill-green { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.dash-pill-blue { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.dash-pill-orange { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.dash-pill-purple { background: #faf5ff; color: #6b21a8; border: 1px solid #e9d5ff; }
.dash-pill-gray { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }

.dash-table-btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border);
  background: #fff;
  color: var(--admin-navy);
  cursor: pointer;
  transition: all var(--admin-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}
.dash-table-btn:hover {
  background: var(--admin-primary);
  color: #fff;
  border-color: var(--admin-primary);
}

/* TWO COLUMN SPLIT (SCHEDULE vs LIVE ACTIVITY) */
.dash-split-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 992px) {
  .dash-split-grid { grid-template-columns: 1fr; }
}
.dash-card {
  background: #fff;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--admin-border);
}
.dash-card-header h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--admin-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dash-card-header a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--admin-secondary);
  text-decoration: none;
  cursor: pointer;
}
.dash-card-header a:hover {
  text-decoration: underline;
}

/* SESSION & TIMELINE ITEMS */
.dash-session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: var(--admin-radius-sm);
  border: 1px solid var(--admin-border-light);
  margin-bottom: 0.65rem;
  transition: all var(--admin-transition);
}
.dash-session-item:hover {
  background: #f1f5f9;
  border-color: var(--admin-border);
}
.dash-session-info strong {
  display: block;
  font-size: 0.86rem;
  color: var(--admin-navy);
}
.dash-session-info span {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
}
.dash-session-time {
  text-align: right;
}
.dash-session-time .time-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--admin-primary);
  background: #eef2ff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* GAUGES & PERFORMANCE METRICS */
.dash-gauges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.dash-gauge-card {
  background: #fff;
  border-radius: var(--admin-radius);
  border: 1px solid var(--admin-border);
  box-shadow: var(--admin-shadow);
  padding: 1.25rem 1.4rem;
}
.dash-gauge-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-gauge-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--admin-navy);
  margin-bottom: 0.5rem;
}
.dash-prog-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.dash-prog-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* SHORTCUT TABS */
.dash-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 0.5rem;
}
.dash-tab-btn {
  background: none;
  border: none;
  padding: 0.5rem 1.15rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  cursor: pointer;
  border-radius: var(--admin-radius-sm);
  transition: all var(--admin-transition);
}
.dash-tab-btn.active {
  background: var(--admin-primary);
  color: #fff;
}
.dash-tab-btn:hover:not(.active) {
  background: #f1f5f9;
  color: var(--admin-navy);
}


