/* Shared brand theme — light + dark — College Admission LMS */
:root {
  --brand-primary: #103DA8;
  --brand-secondary: #2857B8;
  --brand-navy: #202C40;
  --brand-bg: #F4F8FF;
  --brand-white: #FFFFFF;
  --brand-pale: #E1EBFB;
  --brand-muted: #5E6877;
  --brand-gold: #C99A35;
  --brand-gold-light: #D9B15C;
  --lms-bg: #F4F8FF;
  --lms-surface: #FFFFFF;
  --lms-text: #202C40;
  --lms-muted: #5E6877;
  --lms-border: #E1EBFB;
  --lms-sidebar: #FFFFFF;
  --lms-hover: #E1EBFB;
  --lms-shadow: 0 8px 28px rgba(16, 61, 168, 0.08);
}

/* Universal Theme Scrollbars */
body, .board-wrap, .table-wrap, .cal-body, .right-panel-body, .settings-card, .table-panel {
  scrollbar-width: thin;
  scrollbar-color: #103DA8 #E1EBFB;
}

body::-webkit-scrollbar,
.board-wrap::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.cal-body::-webkit-scrollbar,
.right-panel-body::-webkit-scrollbar {
  width: 8px;
  height: 10px;
}

body::-webkit-scrollbar-track,
.board-wrap::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track,
.cal-body::-webkit-scrollbar-track,
.right-panel-body::-webkit-scrollbar-track {
  background: #E1EBFB;
  border-radius: 8px;
}

body::-webkit-scrollbar-thumb,
.board-wrap::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb,
.cal-body::-webkit-scrollbar-thumb,
.right-panel-body::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #103DA8 0%, #2857B8 100%);
  border-radius: 8px;
  border: 2px solid #E1EBFB;
}

body::-webkit-scrollbar-thumb:hover,
.board-wrap::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover,
.cal-body::-webkit-scrollbar-thumb:hover,
.right-panel-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0a2770 0%, #103DA8 100%);
}

[data-theme="dark"] body,
[data-theme="dark"] .board-wrap,
[data-theme="dark"] .table-wrap {
  scrollbar-color: #3b82f6 #111a2e;
}

[data-theme="dark"] body::-webkit-scrollbar-track,
[data-theme="dark"] .board-wrap::-webkit-scrollbar-track,
[data-theme="dark"] .table-wrap::-webkit-scrollbar-track {
  background: #111a2e;
}

[data-theme="dark"] body::-webkit-scrollbar-thumb,
[data-theme="dark"] .board-wrap::-webkit-scrollbar-thumb,
[data-theme="dark"] .table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border: 2px solid #111a2e;
}

[data-theme="dark"] body::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .board-wrap::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .table-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
}

.col-cards {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.col-cards::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Universal Sidebar Styles */
.sidebar {
  width: 72px;
  background: var(--lms-sidebar, #fff);
  border-right: 1px solid var(--lms-border, #E1EBFB);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 12px;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}
.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #202C40;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.sidebar-avatar img,
.avatar img,
.sb-av img,
.mobile-app-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
  font-size: 0 !important;
}
.sidebar-label {
  color: #5E6877;
  font-size: 10px;
  text-align: center;
  line-height: 1.25;
  margin-bottom: 20px;
}
.sidebar-label-sub {
  color: #5E6877;
  font-size: 9.5px;
  font-weight: 600;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: center;
  flex: 1;
}
.nav-item {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #8fa3cf;
  gap: 3px;
  transition: all 0.18s;
  font-size: 9.5px;
  font-weight: 500;
  text-decoration: none;
}
.nav-item:hover {
  background: var(--lms-hover, #E1EBFB);
  color: #103DA8;
}
.nav-item.active {
  background: var(--lms-hover, #E1EBFB);
  color: #103DA8;
  font-weight: 600;
}
.nav-item svg {
  width: 20px;
  height: 20px;
}
.sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* Universal Mobile Components (Hidden on Desktop) */
.mobile-app-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid var(--lms-border, #E1EBFB);
  position: sticky;
  top: 0;
  z-index: 90;
}
.mobile-app-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--lms-text, #202C40);
}
.mobile-app-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-icon-btn {
  background: transparent;
  border: none;
  color: #5E6877;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.mobile-icon-btn svg {
  width: 20px;
  height: 20px;
}
.mobile-app-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #103DA8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

/* Universal Bottom Navigation (Hidden on Desktop) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1.5px solid #e8e9f0;
  z-index: 999;
  height: 60px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.bottom-nav-inner {
  display: flex;
  height: 100%;
  width: 100%;
}
.bnav-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #9da3be;
  font-size: 0.62rem;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 2px;
  white-space: nowrap;
  background: none;
  border: none;
  transition: color 0.15s, background 0.15s;
}
.bnav-item svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  flex-shrink: 0;
}
.bnav-item span {
  display: block;
  font-size: 0.58rem;
  line-height: 1;
}
.bnav-item:hover,
.bnav-item.active {
  color: #103DA8;
}

@media (max-width: 768px) {
  .sidebar {
    display: none !important;
  }
  .mobile-app-header {
    display: flex !important;
  }
  .bottom-nav {
    display: flex !important;
  }
}

html[data-theme="dark"] {
  --lms-bg: #131b2e;
  --lms-surface: #1e293b;
  --lms-text: #f1f5f9;
  --lms-muted: #94a3b8;
  --lms-border: #2d3b55;
  --lms-sidebar: #1e293b;
  --lms-hover: #25334c;
  --lms-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  --bg: #131b2e;
  --card-bg: #1e293b;
  --sidebar-bg: #1e293b;
  --border: #2d3b55;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --summary-bg: #1e293b;
  --primary-light: #1e3a8a;
}

html[data-theme="dark"] body {
  background: var(--lms-bg) !important;
  color: var(--lms-text) !important;
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .sb,
html[data-theme="dark"] aside.sidebar {
  background: var(--lms-sidebar) !important;
  border-color: var(--lms-border) !important;
}

html[data-theme="dark"] .main,
html[data-theme="dark"] .layout,
html[data-theme="dark"] .main-area,
html[data-theme="dark"] .content {
  background: var(--lms-bg) !important;
  color: var(--lms-text) !important;
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .top-bar,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .followup-card,
html[data-theme="dark"] .meeting-section-card,
html[data-theme="dark"] .chart-card,
html[data-theme="dark"] .stats-section,
html[data-theme="dark"] .data-table,
html[data-theme="dark"] table,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .filter-bar,
html[data-theme="dark"] .card,
html[data-theme="dark"] .lead-card,
html[data-theme="dark"] .ld-header,
html[data-theme="dark"] .month-nav,
html[data-theme="dark"] .day-headers,
html[data-theme="dark"] .mobile-app-header,
html[data-theme="dark"] .mobile-header,
html[data-theme="dark"] .mobile-topbar,
html[data-theme="dark"] .bottom-nav {
  background: var(--lms-surface) !important;
  color: var(--lms-text) !important;
  border-color: var(--lms-border) !important;
}

/* Dashboard List Items in Dark Mode */
html[data-theme="dark"] .followup-item,
html[data-theme="dark"] .meeting-list-item {
  color: #d1d9e6 !important;
  border-bottom-color: var(--lms-border) !important;
}
html[data-theme="dark"] .followup-item:hover,
html[data-theme="dark"] .meeting-list-item:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] .followup-num {
  color: #f59e0b !important;
}
html[data-theme="dark"] .followup-num.teal,
html[data-theme="dark"] .meeting-list-num.teal {
  color: #38bdf8 !important;
}
html[data-theme="dark"] .meeting-list-num {
  color: #60a5fa !important;
}

/* Missed Follow-up & Meetings */
html[data-theme="dark"] .missed-card {
  background: #251e2a !important;
  border: 1px solid rgba(242, 95, 92, 0.35) !important;
}
html[data-theme="dark"] .missed-item {
  background: var(--lms-surface) !important;
  border: 1px solid #334155 !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .missed-text {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .missed-view-all,
html[data-theme="dark"] .followup-view-all,
html[data-theme="dark"] .view-all-link {
  color: #60a5fa !important;
}

/* Time & Filter Buttons */
html[data-theme="dark"] .time-btn {
  background: var(--lms-surface) !important;
  color: var(--lms-muted) !important;
  border-color: var(--lms-border) !important;
}
html[data-theme="dark"] .time-btn.active {
  background: #103DA8 !important;
  color: #ffffff !important;
  border-color: #103DA8 !important;
}

/* Search Bars and Action Controls */
html[data-theme="dark"] .search-bar,
html[data-theme="dark"] .search-wrap,
html[data-theme="dark"] .filter-search {
  background: #131b2e !important;
  border: 1px solid var(--lms-border) !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .search-bar input,
html[data-theme="dark"] .search-wrap input,
html[data-theme="dark"] .filter-search input,
html[data-theme="dark"] #leadSearchInput {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #f1f5f9 !important;
  padding: 0 !important;
}
html[data-theme="dark"] .search-bar input::placeholder,
html[data-theme="dark"] .search-wrap input::placeholder,
html[data-theme="dark"] .filter-search input::placeholder,
html[data-theme="dark"] #leadSearchInput::placeholder {
  color: #64748b !important;
}
html[data-theme="dark"] .search-bar svg,
html[data-theme="dark"] .search-wrap svg,
html[data-theme="dark"] .filter-search svg {
  stroke: #64748b !important;
  color: #64748b !important;
}
html[data-theme="dark"] .filter-icon-btn {
  background: var(--lms-surface) !important;
  border: 1px solid var(--lms-border) !important;
  color: var(--lms-muted) !important;
}
html[data-theme="dark"] .filter-icon-btn:hover {
  background: var(--lms-hover) !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
}
html[data-theme="dark"] .filter-icon-btn.active {
  background: #103DA8 !important;
  color: #ffffff !important;
  border-color: #103DA8 !important;
}
html[data-theme="dark"] .view-toggles {
  background: #131b2e !important;
  border: 1px solid var(--lms-border) !important;
}
html[data-theme="dark"] .view-toggles .view-btn {
  background: transparent !important;
  color: var(--lms-muted) !important;
}
html[data-theme="dark"] .view-toggles .view-btn:hover {
  color: #ffffff !important;
}
html[data-theme="dark"] .view-toggles .view-btn.active {
  background: #103DA8 !important;
  color: #ffffff !important;
}

/* Inputs, Selects & Filters */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .search-input,
html[data-theme="dark"] .filter-select,
html[data-theme="dark"] .fp-select,
html[data-theme="dark"] .fp-date-btn,
html[data-theme="dark"] .date-wrap,
html[data-theme="dark"] .form-input,
html[data-theme="dark"] .cs-btn {
  background: #131b2e !important;
  color: #f1f5f9 !important;
  border-color: var(--lms-border) !important;
}
html[data-theme="dark"] .cs-list {
  background: #1e293b !important;
  border-color: var(--lms-border) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5) !important;
}
html[data-theme="dark"] .cs-item {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .cs-item:hover {
  background: #25334c !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .cs-item.cs-selected {
  background: #103DA8 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .form-section {
  background: #182234 !important;
  border-color: var(--lms-border) !important;
}
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
  background: var(--lms-surface) !important;
  border-color: var(--lms-border) !important;
}
html[data-theme="dark"] .leads-count {
  color: var(--lms-muted) !important;
}

/* Kanban Board & Pipeline */
html[data-theme="dark"] .col,
html[data-theme="dark"] .kanban-col {
  background: #131b2e !important;
  border-color: var(--lms-border) !important;
}
html[data-theme="dark"] .col-header {
  background: #1a2333 !important;
}
html[data-theme="dark"] .col-title {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .col-count {
  background: var(--lms-surface) !important;
  color: var(--lms-muted) !important;
}
html[data-theme="dark"] .card,
html[data-theme="dark"] .lead-card {
  background: var(--lms-surface) !important;
  border-color: var(--lms-border) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .lead-card:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
}
html[data-theme="dark"] .card-name {
  color: #ffffff !important;
}
html[data-theme="dark"] .card-company {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .card-service {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .card-meta,
html[data-theme="dark"] .meta-row,
html[data-theme="dark"] .meta-ready {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .meta-row svg {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .meta-row.followup,
html[data-theme="dark"] .meta-row.followup svg {
  color: #f87171 !important;
}
html[data-theme="dark"] .move-btn {
  background: #131b2e !important;
  color: #cbd5e1 !important;
  border-color: var(--lms-border) !important;
}
html[data-theme="dark"] .move-btn:hover {
  background: var(--lms-hover) !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .empty-stage-text,
html[data-theme="dark"] .no-leads-text {
  color: #64748b !important;
}

/* Pipeline Table View */
html[data-theme="dark"] .table-toolbar {
  background: var(--lms-surface) !important;
  border-color: var(--lms-border) !important;
}
html[data-theme="dark"] .toolbar-btn,
html[data-theme="dark"] .hidden-badge {
  background: #131b2e !important;
  color: #cbd5e1 !important;
  border-color: var(--lms-border) !important;
}
html[data-theme="dark"] .toolbar-btn:hover,
html[data-theme="dark"] .hidden-badge:hover {
  background: var(--lms-hover) !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .data-table {
  background: var(--lms-surface) !important;
  color: #e2e8f0 !important;
}
html[data-theme="dark"] .data-table th {
  background: #131b2e !important;
  color: #94a3b8 !important;
  border-color: var(--lms-border) !important;
}
html[data-theme="dark"] .data-table th:hover {
  background: #1a2333 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .data-table td {
  background: var(--lms-surface) !important;
  color: #e2e8f0 !important;
  border-color: var(--lms-border) !important;
}
html[data-theme="dark"] .data-table tr:hover td {
  background: var(--lms-hover) !important;
}
html[data-theme="dark"] .name-cell {
  color: #ffffff !important;
}
html[data-theme="dark"] .health-label,
html[data-theme="dark"] .activity-text,
html[data-theme="dark"] .payment-cell,
html[data-theme="dark"] .mobile-cell {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .city-cell,
html[data-theme="dark"] .business-cell {
  color: #94a3b8 !important;
}

/* Pipeline Search & View toggle */
html[data-theme="dark"] .search-wrap {
  background: #131b2e !important;
  border-color: var(--lms-border) !important;
}
html[data-theme="dark"] .search-wrap input {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .search-wrap input::placeholder {
  color: #64748b !important;
}
html[data-theme="dark"] .view-toggle {
  border-color: var(--lms-border) !important;
}
html[data-theme="dark"] .view-btn {
  background: #131b2e !important;
  color: #94a3b8 !important;
}
html[data-theme="dark"] .view-btn.active {
  background: #103DA8 !important;
  color: #ffffff !important;
}
html[data-theme="dark"] .filter-btn {
  background: #131b2e !important;
  border-color: var(--lms-border) !important;
  color: #94a3b8 !important;
}
html[data-theme="dark"] .filter-btn:hover {
  background: var(--lms-hover) !important;
}
html[data-theme="dark"] .checkbox-wrap {
  color: #cbd5e1 !important;
}

/* Charts & Breakdown */
html[data-theme="dark"] .chart-title,
html[data-theme="dark"] .stage-bar-label,
html[data-theme="dark"] .stats-row-label,
html[data-theme="dark"] .meeting-label,
html[data-theme="dark"] .breakdown-title,
html[data-theme="dark"] .meeting-stats-title {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .legend-item,
html[data-theme="dark"] .stage-bar-count,
html[data-theme="dark"] .breakdown-tile-label,
html[data-theme="dark"] .rating-tile-label,
html[data-theme="dark"] .meeting-stats-tile-label {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .product-bar-section,
html[data-theme="dark"] .breakdown-tile,
html[data-theme="dark"] .rating-tile {
  background: var(--lms-surface, #1e293b) !important;
  border: 1px solid var(--lms-border, #2d3b55) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .product-bar-label {
  color: #cbd5e1 !important;
  font-weight: 500;
}
html[data-theme="dark"] .product-bar-count {
  color: #ffffff !important;
  font-weight: 700;
}
html[data-theme="dark"] .product-bar-outer,
html[data-theme="dark"] .stage-bar-outer,
html[data-theme="dark"] .meeting-bar-wrap {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="dark"] .product-bar-inner {
  background: linear-gradient(90deg, #4f46e5, #6366f1) !important;
}
html[data-theme="dark"] .meeting-stats-tile {
  border: 1px solid #2d3b55 !important;
}
html[data-theme="dark"] .mst-total {
  background: rgba(59, 130, 246, 0.16) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}
html[data-theme="dark"] .mst-scheduled {
  background: rgba(14, 165, 233, 0.16) !important;
  border-color: rgba(14, 165, 233, 0.4) !important;
}
html[data-theme="dark"] .mst-completed {
  background: rgba(34, 197, 94, 0.16) !important;
  border-color: rgba(34, 197, 94, 0.4) !important;
}
html[data-theme="dark"] .mst-cancelled {
  background: rgba(239, 68, 68, 0.16) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}
html[data-theme="dark"] .stats-row {
  border-bottom-color: var(--lms-border) !important;
}
html[data-theme="dark"] .stats-row:hover {
  background: var(--lms-hover) !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .pt,
html[data-theme="dark"] .section-title {
  color: var(--lms-text) !important;
}

.lms-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #202C40;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--lms-shadow);
  border-left: 4px solid #C99A35;
  max-width: 320px;
  animation: lmsToastIn 0.25s ease;
}
html[data-theme="dark"] .lms-toast {
  background: #103DA8;
}
@keyframes lmsToastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lms-theme-btn {
  width: 48px;
  height: 40px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 9px;
  font-weight: 500;
  border-radius: 10px;
}
.lms-theme-btn:hover { background: var(--lms-hover); color: #103DA8; }
.lms-theme-btn svg { width: 18px; height: 18px; }

.lms-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 44, 64, 0.45);
  z-index: 4000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lms-modal-overlay.open { display: flex; }
.lms-modal {
  background: var(--lms-surface, #fff);
  color: var(--lms-text, #202C40);
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--lms-shadow);
  border-top: 4px solid #C99A35;
}
.lms-modal h3 { margin: 0 0 8px; font-size: 1.15rem; }
.lms-modal p { margin: 0 0 16px; color: var(--lms-muted); font-size: 0.9rem; }
.lms-modal input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #E1EBFB;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.lms-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.lms-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.lms-btn-primary { background: #103DA8; color: #fff; }
.lms-btn-primary:hover { background: #2857B8; }
.lms-btn-ghost { background: #E1EBFB; color: #202C40; }

.login-theme-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(201,154,53,0.5);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.login-theme-btn:hover { background: #C99A35; color: #202C40; }
