/* ==========================================================================
   SkillAll Admin Panel Stylesheet
   skillall.in - Prospective Student Leads & Administration
   ========================================================================== */

:root {
  --admin-bg: #f8fafc;
  --admin-card-bg: #ffffff;
  --admin-primary: #d97706;
  --admin-primary-dark: #b45309;
  --admin-primary-light: #fffbeb;
  --admin-accent: #e8981b;
  --admin-secondary: #152636;
  --admin-text-main: #1e293b;
  --admin-text-muted: #64748b;
  --admin-border: #e2e8f0;
  --admin-font: 'Inter', system-ui, -apple-system, sans-serif;
  --admin-font-heading: 'Outfit', var(--admin-font);
  
  --status-new-bg: #fef3c7;
  --status-new-text: #b45309;
  --status-new-border: #fde68a;
  
  --status-contacted-bg: #e0f2fe;
  --status-contacted-text: #0369a1;
  --status-contacted-border: #bae6fd;
  
  --status-discussion-bg: #f3e8ff;
  --status-discussion-text: #7e22ce;
  --status-discussion-border: #e9d5ff;
  
  --status-enrolled-bg: #dcfce7;
  --status-enrolled-text: #15803d;
  --status-enrolled-border: #bbf7d0;
  
  --status-archived-bg: #f1f5f9;
  --status-archived-text: #64748b;
  --status-archived-border: #cbd5e1;
}

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

body {
  font-family: var(--admin-font);
  background-color: var(--admin-bg);
  color: var(--admin-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Admin Topbar Header --- */
.admin-topbar {
  background: #0b1320;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.admin-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.admin-topbar-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.admin-brand-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-logo-img {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.admin-brand-badge {
  font-family: var(--admin-font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Nav Menu */
.admin-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #94a3b8;
  transition: all 0.2s ease;
}

.admin-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.admin-nav-item.active {
  color: #ffffff;
  background: rgba(232, 152, 27, 0.22);
  border: 1px solid rgba(232, 152, 27, 0.5);
}

.admin-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.admin-badge-pill {
  background: #f59e0b;
  color: #000000;
}

.admin-badge-subtle {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

/* Header Action Buttons */
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-admin-primary {
  background: linear-gradient(135deg, #d97706 0%, #e8981b 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(232, 152, 27, 0.35);
}

.btn-admin-primary:hover {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
}

.btn-admin-outline {
  background: #ffffff;
  color: var(--admin-secondary);
  border-color: var(--admin-border);
}

.btn-admin-outline:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-admin-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-admin-glass:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-admin-subtle {
  background: #f1f5f9;
  color: #475569;
}

.btn-admin-subtle:hover {
  background: #e2e8f0;
  color: var(--admin-secondary);
}

/* --- Main Content Area --- */
.admin-main {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  margin-bottom: 0.4rem;
}

.admin-heading {
  font-family: var(--admin-font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--admin-secondary);
  letter-spacing: -0.02em;
}

.admin-subheading {
  font-size: 0.96rem;
  color: var(--admin-text-muted);
  margin-top: 0.2rem;
}

.admin-page-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --- Stat KPI Cards --- */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-icon-primary {
  background: #fef3c7;
  color: #d97706;
}

.stat-icon-success {
  background: #dcfce7;
  color: #16a34a;
}

.stat-icon-warning {
  background: #fef3c7;
  color: #d97706;
}

.stat-icon-info {
  background: #e0f2fe;
  color: #0284c7;
}

.stat-data h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--admin-secondary);
  line-height: 1.2;
}

.stat-data p {
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  font-weight: 500;
}

/* --- Control Toolbar (Search, Filters, Actions) --- */
.admin-toolbar {
  background: var(--admin-card-bg);
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.toolbar-search {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 420px;
}

.toolbar-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
}

.toolbar-search input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.6rem;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
  background: #f8fafc;
}

.toolbar-search input:focus {
  border-color: var(--admin-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(232, 152, 27, 0.18);
}

.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--admin-text-muted);
}

.filter-group select {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.88rem;
  color: var(--admin-text-main);
  outline: none;
  cursor: pointer;
}

.filter-group select:focus {
  border-color: var(--admin-primary);
}

/* --- Table Card --- */
.admin-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.table-card-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: #ffffff;
}

.table-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--admin-secondary);
}

.table-count-badge {
  font-size: 0.78rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.admin-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background-color: #fafbfc;
}

/* Row Specific Elements */
.lead-id-badge {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: #0f172a;
}

.lead-time {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  margin-top: 0.2rem;
}

.badge-today {
  background: #dcfce7;
  color: #166534;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.lead-name {
  font-weight: 700;
  color: var(--admin-secondary);
  font-size: 0.98rem;
}

.lead-ip {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  transition: color 0.15s;
}

.phone-link {
  color: #0284c7;
  font-weight: 600;
}

.phone-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

.email-link:hover {
  color: var(--admin-primary);
}

.track-pill {
  display: inline-block;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  max-width: 240px;
  white-space: normal;
}

.exp-text {
  font-size: 0.85rem;
  color: #475569;
}

.voucher-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s;
}

.voucher-copy-btn:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

/* Status Dropdown Pills */
.status-dropdown {
  padding: 0.35rem 0.65rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.2s;
}

.status-new {
  background-color: var(--status-new-bg);
  color: var(--status-new-text);
  border-color: var(--status-new-border);
}

.status-contacted {
  background-color: var(--status-contacted-bg);
  color: var(--status-contacted-text);
  border-color: var(--status-contacted-border);
}

.status-in-discussion {
  background-color: var(--status-discussion-bg);
  color: var(--status-discussion-text);
  border-color: var(--status-discussion-border);
}

.status-enrolled {
  background-color: var(--status-enrolled-bg);
  color: var(--status-enrolled-text);
  border-color: var(--status-enrolled-border);
}

.status-archived {
  background-color: var(--status-archived-bg);
  color: var(--status-archived-text);
  border-color: var(--status-archived-border);
}

/* Action Group */
.action-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8fafc;
  color: #64748b;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1eb954;
  transform: scale(1.08);
}

.btn-note {
  border-color: #e2e8f0;
}

.btn-note:hover {
  background: #eef2ff;
  color: var(--admin-primary);
}

.btn-note.has-note {
  background: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

.btn-delete:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

/* --- Modals --- */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.admin-modal-card {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.admin-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--admin-secondary);
}

.admin-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s;
}

.admin-modal-close:hover {
  color: var(--admin-secondary);
}

.admin-modal-body {
  padding: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-col {
  display: flex;
  flex-direction: column;
}

.admin-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.admin-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.admin-input:focus {
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(232, 152, 27, 0.18);
}

.admin-modal-footer {
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--admin-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast Notification */
.admin-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 2000;
  animation: slideUp 0.2s ease-out;
}

.admin-toast.active {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.admin-footer {
  background: #ffffff;
  border-top: 1px solid var(--admin-border);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  margin-top: auto;
}

.admin-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hide-mobile {
    display: none !important;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Modern Admin Sidebar Layout & Toggle Bar
   ========================================================================== */

.admin-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  background-color: var(--admin-bg);
}

/* Sidebar Container */
.admin-sidebar {
  width: 260px;
  min-width: 260px;
  background: #0b1320;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease;
  overflow: hidden;
}

/* Sidebar Brand Header */
.sidebar-header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  text-decoration: none;
}

.sidebar-logo-full {
  height: 34px;
  width: auto;
  display: block;
}

.sidebar-logo-icon {
  height: 34px;
  width: auto;
  display: none;
}

/* Sidebar Navigation Body */
.sidebar-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-section-heading {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0 0.65rem;
  margin-bottom: 0.4rem;
  white-space: nowrap;
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.sidebar-nav-link i.nav-icon {
  font-size: 1.05rem;
  width: 22px;
  text-align: center;
  color: #64748b;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.sidebar-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.sidebar-nav-link:hover i.nav-icon {
  color: var(--admin-primary);
}

.sidebar-nav-link.active {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.2) 0%, rgba(217, 119, 6, 0.1) 100%);
  color: #fbbf24;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.sidebar-nav-link.active i.nav-icon {
  color: #fbbf24;
}

.sidebar-nav-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  flex-shrink: 0;
}

/* Sidebar Bottom Toggle Footer */
.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-toggle-bar {
  width: 100%;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.sidebar-toggle-bar:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Main Content Wrapper */
.admin-main-wrapper {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* New Modern Topbar */
.admin-topbar {
  height: 68px;
  background: #ffffff;
  border-bottom: 1px solid var(--admin-border);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.admin-topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1.5rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: #ffffff;
  color: var(--admin-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.2s;
}

.sidebar-toggle-btn:hover {
  background: #f1f5f9;
  color: var(--admin-primary);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Collapsed / Minimized Sidebar State
   ========================================================================== */

.admin-layout.sidebar-collapsed .admin-sidebar {
  width: 72px;
  min-width: 72px;
}

.admin-layout.sidebar-collapsed .sidebar-header {
  justify-content: center;
  padding: 0;
}

.admin-layout.sidebar-collapsed .sidebar-logo-full {
  display: none;
}

.admin-layout.sidebar-collapsed .sidebar-logo-icon {
  display: block;
}

.admin-layout.sidebar-collapsed .sidebar-section-heading {
  display: none;
}

.admin-layout.sidebar-collapsed .sidebar-text {
  display: none;
}

.admin-layout.sidebar-collapsed .sidebar-nav-badge {
  position: absolute;
  top: 4px;
  right: 6px;
  padding: 0.1rem 0.35rem;
  font-size: 0.65rem;
}

.admin-layout.sidebar-collapsed .sidebar-nav-link {
  justify-content: center;
  padding: 0.75rem 0;
}

.admin-layout.sidebar-collapsed .sidebar-toggle-bar span {
  display: none;
}

.admin-layout.sidebar-collapsed .sidebar-toggle-bar i {
  transform: rotate(180deg);
}

.admin-layout.sidebar-collapsed .admin-main-wrapper {
  margin-left: 72px;
}

/* Mobile Responsiveness */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 995;
  backdrop-filter: blur(2px);
}

@media (max-width: 992px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 270px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .admin-main-wrapper {
    margin-left: 0 !important;
  }

  .admin-layout.sidebar-mobile-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-layout.sidebar-mobile-open .sidebar-backdrop {
    display: block;
  }
}

/* ==========================================================================
   Course Curriculum Editor Styles
   ========================================================================== */

.curriculum-module-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.curriculum-module-card:hover {
  border-color: #cbd5e1;
}

.module-header {
  background: #f8fafc;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.module-badge {
  background: var(--admin-secondary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
}

.module-title-input {
  flex: 1;
  min-width: 220px;
  height: 38px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  padding: 0 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--admin-secondary);
}

.module-duration-input {
  width: 130px;
  height: 38px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  padding: 0 0.75rem;
  font-size: 0.85rem;
  color: #475569;
}

.module-remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.module-remove-btn:hover {
  background: #fee2e2;
}

.lessons-container {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lesson-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  transition: all 0.2s;
}

.lesson-row:hover {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.lesson-index-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.lesson-title-input {
  flex: 1;
  min-width: 180px;
  height: 36px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  padding: 0 0.75rem;
  font-size: 0.88rem;
}

.lesson-duration-input {
  width: 100px;
  height: 36px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  padding: 0 0.65rem;
  font-size: 0.82rem;
  text-align: center;
}

.lesson-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.lesson-remove-btn:hover {
  color: #ef4444;
  background: #fee2e2;
}

.add-lesson-btn {
  align-self: flex-start;
  background: none;
  border: 1px dashed #cbd5e1;
  color: var(--admin-primary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  transition: all 0.2s;
}

.add-lesson-btn:hover {
  border-color: var(--admin-primary);
  background: var(--admin-primary-light);
}

.add-module-btn {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
  color: var(--admin-primary);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  transition: all 0.2s;
}

.add-module-btn:hover {
  border-color: var(--admin-primary);
  background: var(--admin-primary-light);
}
