@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DESIGN TOKENS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {
  --bg-main: #ffffff;
  --bg-card: #fafafa;
  --bg-hover: #f4f4f5;
  --bg-input: #ffffff;
  --text-primary: #09090b;
  --text-secondary: #71717a;
  --text-muted: #a1a1aa;
  --border-color: #e4e4e7;
  --border-hover: #d4d4d8;
  --primary-btn-bg: #09090b;
  --primary-btn-text: #ffffff;
  --primary-btn-hover: #27272a;
  --danger-color: #ef4444;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --focus-ring: rgba(113, 113, 122, 0.18);
  --danger-bg: #fef2f2;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-panel: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESET & BASE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

* {
  box-sizing: border-box;
}

html {
  font-size: 13px;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-primary);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FORM CONTROLS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

input,
select,
textarea {
  width: 100%;
  min-height: 2.35rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-primary);
  padding: 0.5rem 0.65rem;
  line-height: 1.3;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:hover:not(:disabled),
select:hover:not(:disabled) {
  border-color: var(--border-hover);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--text-secondary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  gap: 0.45rem;
  min-height: 2.25rem;
  border-radius: 6px;
  padding: 0.42rem 0.8rem;
  color: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  vertical-align: middle;
}

.btn-primary {
  border: 1px solid transparent;
  background: var(--primary-btn-bg);
  color: var(--primary-btn-text);
}

.btn-primary:hover {
  background: var(--primary-btn-hover);
}

.btn-secondary {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.btn-sm {
  min-height: 1.85rem;
  padding: 0.32rem 0.6rem;
  font-size: 0.8125rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   GLASS PANEL
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-panel);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SHELL LAYOUT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.panel-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────────── */

.panel-sidebar {
  width: 232px;
  flex: 0 0 232px;
  border-right: 1px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.panel-brand {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding: 0 0.875rem;
}

.panel-brand-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.panel-brand-title span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.panel-brand-title strong {
  font-size: 0.9375rem;
}

.brand-mark {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-input);
  color: var(--text-primary);
}

.panel-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
}

@keyframes active-glow {

  0%,
  100% {
    background: var(--bg-hover);
    border-color: var(--border-color);
  }

  50% {
    background: rgba(9, 9, 11, 0.05);
    border-color: var(--border-hover);
  }
}

.panel-nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-secondary);
  padding: 0.48rem 0.65rem;
  position: relative;
  transition: all 0.2s ease;
}

.panel-nav-link.active,
.panel-nav-link:hover {
  border-color: var(--border-color);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.panel-nav-link.active {
  padding-left: 0.95rem;
  animation: active-glow 3s infinite ease-in-out;
}

.panel-nav-link.active::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 25%;
  height: 50%;
  width: 3px;
  background-color: var(--text-primary);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.sidebar-nav-icon {
  transition: transform 0.2s ease, color 0.2s ease;
}

.panel-nav-link:hover .sidebar-nav-icon {
  transform: rotate(12deg) scale(1.05);
  color: var(--text-primary);
}

/* ── Content area ───────────────────────────────────────────────── */

.panel-content {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.panel-header {
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 0 1rem;
}

.panel-header-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.panel-main {
  flex: 1;
  overflow-y: auto;
  padding: 0.875rem;
}

/* ── Page header ────────────────────────────────────────────────── */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.page-header-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.page-header h1 {
  margin: 0;
  font-size: 1.625rem;
  line-height: 1.2;
}

.page-header-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   EMPTY STATE (Dashboard)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.empty-state-inner {
  text-align: center;
  max-width: 26rem;
  padding: 2rem;
}

.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 16px;
  background: var(--bg-hover);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.empty-state-inner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.empty-state-inner p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FILTER PANEL
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.filter-panel {
  margin-bottom: 0.875rem;
  padding: 0.875rem;
  animation: slide-fade-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.filter-panel-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9375rem;
}

.filter-panel-title svg {
  color: var(--text-secondary);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.filter-field-wide {
  grid-column: span 2;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-label {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DATA TABLE WRAPPER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.data-table {
  overflow: hidden;
  animation: slide-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.table-scroll {
  overflow-x: auto;
}

@keyframes slide-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DATATABLES OVERRIDES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Remove default DataTables borders */
table.dataTable {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

table.dataTable thead th,
table.dataTable thead td {
  border-bottom: 1px solid var(--border-color) !important;
  padding: 0.6rem 0.75rem !important;
  background: var(--bg-hover) !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  font-size: 0.8125rem !important;
  white-space: nowrap;
}

table.dataTable tbody td {
  border-bottom: 1px solid var(--border-color) !important;
  padding: 0.52rem 0.75rem !important;
  font-size: 0.875rem;
  white-space: nowrap;
}

table.dataTable tbody tr:hover {
  background: var(--bg-hover) !important;
}

table.dataTable tbody tr:hover td {
  background: transparent !important;
}

/* Sorting header icons */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease;
}

table.dataTable thead .sorting:hover,
table.dataTable thead .sorting_asc:hover,
table.dataTable thead .sorting_desc:hover {
  background: var(--border-color) !important;
  color: var(--text-primary) !important;
}

/* DataTables wrapper layout */
.dataTables_wrapper {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  padding: 0.625rem 0.875rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

/* Top bar: length + search */
.dataTables_wrapper .dataTables_length {
  float: left;
}

.dataTables_wrapper .dataTables_filter {
  float: right;
}

.dataTables_wrapper .dataTables_length select {
  width: auto;
  min-width: 4.5rem;
  min-height: 2rem;
  padding: 0.32rem 0.55rem;
  margin: 0 0.35rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.8125rem;
  box-shadow: var(--shadow-sm);
}

.dataTables_wrapper .dataTables_filter input {
  width: auto;
  min-width: 14rem;
  min-height: 2rem;
  padding: 0.4rem 0.65rem;
  margin-left: 0.35rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.8125rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
  outline: none;
  border-color: var(--text-secondary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Bottom bar: info + pagination */
.dataTables_wrapper .dataTables_info {
  float: left;
  padding-top: 0.75rem;
  font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate {
  float: right;
  padding-top: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  background: var(--bg-input) !important;
  color: var(--text-secondary) !important;
  font-size: 0.8125rem !important;
  font-weight: 500;
  margin: 0 0.15rem;
  padding: 0.28rem 0.5rem !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--bg-hover) !important;
  border-color: var(--border-hover) !important;
  color: var(--text-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--primary-btn-bg) !important;
  border-color: var(--primary-btn-bg) !important;
  color: var(--primary-btn-text) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--primary-btn-hover) !important;
  border-color: var(--primary-btn-hover) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  background: var(--bg-input) !important;
  border-color: var(--border-color) !important;
  color: var(--text-secondary) !important;
}

/* Bottom border between table and footer controls */
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  border-top: 1px solid var(--border-color);
}

/* "No data available" message */
table.dataTable td.dataTables_empty {
  padding: 2rem !important;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
}

/* Processing indicator */
.dataTables_wrapper .dataTables_processing {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-panel);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 10;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SELECT2 OVERRIDES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.select2-container--default .select2-selection--single {
  height: 2.35rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-input);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.select2-container--default .select2-selection--single:hover {
  border-color: var(--border-hover);
}

.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--text-secondary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-primary);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  line-height: 2.35rem;
  padding-left: 0.65rem;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--text-muted);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 2.35rem;
}

.select2-dropdown {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  outline: none;
  border-color: var(--text-secondary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.select2-container--default .select2-results__option {
  padding: 0.45rem 0.65rem;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8125rem;
  color: var(--text-primary);
  transition: background 0.1s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background: var(--primary-btn-bg);
  color: var(--primary-btn-text);
}

.select2-container--default .select2-results__option--highlighted[aria-selected=true] {
  background: var(--primary-btn-hover);
  color: var(--primary-btn-text);
}

/* Select2 clear button */
.select2-container--default .select2-selection--single .select2-selection__clear {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-right: 0.35rem;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
  color: var(--text-primary);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BADGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.badge-default {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info-color);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RECORD COUNT & PAGE HEADER ACTIONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.record-count {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DUPLICATE GROUP SEPARATOR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

table.dataTable tbody tr.group-separator {
  border-top: 2.5px solid var(--border-hover) !important;
}

table.dataTable tbody tr.group-separator td {
  padding-top: 0.65rem !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 768px) {
  .panel-sidebar {
    display: none;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-field-wide {
    grid-column: span 1;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LOGIN & LOGOUT STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.login-body {
  background: var(--bg-surface);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
}

.login-card {
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
}

.login-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-mark-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--primary-color);
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.login-brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.login-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.login-error-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.login-form .form-group {
  margin-bottom: 1.25rem;
}

.login-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.login-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-panel);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 1.5rem;
}

/* Sidebar Logout Footer */
.panel-sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ef4444;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.65rem 0.875rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* Header Logout Styles */
.panel-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-logout-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-card);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-logout-header:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.05);
}

.btn-logout-header svg {
  stroke: currentColor;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DASHBOARD ANALYTICS STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.stat-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.stat-icon-wrapper.blue {
  background: rgba(59, 130, 246, 0.08);
  color: #2563eb;
}

.stat-icon-wrapper.green {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.stat-icon-wrapper.amber {
  background: rgba(245, 158, 11, 0.08);
  color: #d97706;
}

.stat-icon-wrapper.violet {
  background: rgba(139, 92, 246, 0.08);
  color: #7c3aed;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 0.25rem;
}

.stat-description {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.dashboard-insights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .dashboard-insights-grid {
    grid-template-columns: 1fr;
  }
}

.insight-card {
  padding: 1.75rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.02);
}

.insight-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.top-schools-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.top-school-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.top-school-info {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.school-rank {
  font-weight: 600;
  color: var(--text-secondary);
  width: 24px;
}

.school-name {
  font-weight: 500;
  color: var(--text-primary);
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 1rem;
}

.school-count {
  font-weight: 600;
  color: #2563eb;
  font-size: 0.8125rem;
  background: rgba(59, 130, 246, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--primary-color);
  transition: width 0.8s ease-out;
}

.insights-summary {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.5);
  border: 1px solid var(--border-color);
}

.summary-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.summary-value {
  color: var(--text-primary);
  font-weight: 600;
}

.shortcuts-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.shortcuts-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.shortcut-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
}

.shortcut-btn svg {
  color: var(--primary-color);
}

.shortcut-btn:hover {
  border-color: var(--primary-color);
  background: rgba(59, 130, 246, 0.04);
  transform: translateY(-1px);
}

.shortcut-btn.danger svg {
  color: #ef4444;
}

.shortcut-btn.danger:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.04);
}