/* ============================================================
   SISTEM INFORMASI CAPSTONE - TELKOM UNIVERSITY JAKARTA
   Global Design System & Stylesheet
   ============================================================ */

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

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --clr-primary: #E31E24;
  --clr-primary-dark: #B01619;
  --clr-primary-light: #FF3B41;
  --clr-primary-bg: #FFF0F0;

  --clr-bg: #F4F5F7;
  --clr-surface: #FFFFFF;
  --clr-surface-2: #F8F9FA;
  --clr-border: #E2E6EA;
  --clr-border-dark: #CED4DA;

  --clr-text: #1A1A2E;
  --clr-text-secondary: #6C757D;
  --clr-text-muted: #ADB5BD;

  --clr-success: #198754;
  --clr-success-bg: #D1E7DD;
  --clr-warning: #856404;
  --clr-warning-bg: #FFF3CD;
  --clr-danger: #B02A37;
  --clr-danger-bg: #F8D7DA;
  --clr-info: #0A58CA;
  --clr-info-bg: #CFE2FF;

  --sidebar-width: 260px;
  --header-height: 64px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  --transition: 0.2s ease;
  --font: 'Inter', sans-serif;

  /* ── SIDEBAR COLOR THEME (overridden by JS for students) ── */
  --sidebar-bg:     #1D3557;   /* darkest — main sidebar background */
  --sidebar-mid:    #457B9D;   /* secondary — hover / user section  */
  --sidebar-accent: #E63946;   /* accent — active nav item bg       */
  --sidebar-light:  #A8DADC;   /* lightest — subtle highlights       */
  --sidebar-nav-active-text: #ffffff;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
}

input,
select,
textarea {
  font-family: var(--font);
}

/* ── LAYOUT ─────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.main-content {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - var(--sidebar-width));
  max-width: calc(100% - var(--sidebar-width));
  transition: margin-left var(--transition);
  overflow-x: hidden;
}

.page-body {
  flex: 1;
  padding: 24px 28px;
  margin-top: var(--header-height);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* ── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg, #072D44);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow: hidden;
  transition: background 0.4s ease;
}

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand-logo {
  width: 40px;
  height: 40px;
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-brand-text h1 {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.sidebar-brand-text p {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  line-height: 1.3;
}

.sidebar-user {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}


.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.nav-section-label {
  padding: 8px 20px 4px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  margin: 2px 10px;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

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

.nav-item.active {
  background: var(--sidebar-accent, #5790AB);
  color: var(--sidebar-nav-active-text, #ffffff);
}

.nav-item .nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-logout {
  width: 100%;
  padding: 10px 16px;
  background: rgba(227, 30, 36, 0.12);
  color: #FF6B70;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  border: 1px solid rgba(227, 30, 36, 0.2);
  text-align: left;
  cursor: pointer;
}

.btn-logout:hover {
  background: rgba(227, 30, 36, 0.22);
  color: #FF3B41;
}

/* ── TOP HEADER ─────────────────────────────────────────────── */
.top-header {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--header-height);
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-text);
}

.header-subtitle {
  font-size: 12px;
  color: var(--clr-text-secondary);
  margin-top: 1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-date {
  font-size: 12px;
  color: var(--clr-text-secondary);
}

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-header {
  margin-bottom: 24px;
}

.page-header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-text);
}

.page-header-subtitle {
  font-size: 13px;
  color: var(--clr-text-secondary);
  margin-top: 4px;
}

/* ── STATS GRID ─────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.red {
  background: var(--clr-primary-bg);
}

.stat-icon.blue {
  background: #EBF5FF;
}

.stat-icon.green {
  background: #D1FAE5;
}

.stat-icon.yellow {
  background: #FEF9C3;
}

.stat-icon.purple {
  background: #EDE9FE;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--clr-text);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--clr-text-secondary);
  margin-top: 4px;
}

/* ── CARD ───────────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-text);
}

.card-subtitle {
  font-size: 12px;
  color: var(--clr-text-secondary);
  margin-top: 2px;
}

.card-body {
  padding: 20px;
}

/* ── TABLE ──────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead th {
  background: var(--clr-surface-2);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--clr-text-secondary);
  border-bottom: 1px solid var(--clr-border);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--clr-surface-2);
}

/* ── BADGES ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success {
  background: var(--clr-success-bg);
  color: var(--clr-success);
}

.badge-danger {
  background: var(--clr-danger-bg);
  color: var(--clr-danger);
}

.badge-warning {
  background: var(--clr-warning-bg);
  color: var(--clr-warning);
}

.badge-info {
  background: var(--clr-info-bg);
  color: var(--clr-info);
}

.badge-primary {
  background: var(--clr-primary-bg);
  color: var(--clr-primary);
}

.badge-muted {
  background: var(--clr-surface-2);
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  height: 38px;
  box-sizing: border-box;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--clr-primary);
  color: white;
  border-color: var(--clr-primary);
}

.btn-primary:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  color: white;
}

.btn-outline {
  background: var(--clr-surface);
  color: var(--clr-text);
  border: 1px solid var(--clr-border-dark);
}

.btn-outline:hover {
  background: var(--clr-surface-2);
  color: var(--clr-text);
  border-color: #adb5bd;
}

.btn-success {
  background: var(--clr-success);
  color: white;
  border-color: var(--clr-success);
}

.btn-success:hover {
  opacity: 0.88;
}

.btn-info {
  background: var(--clr-info);
  color: white;
  border-color: var(--clr-info);
}

.btn-info:hover {
  opacity: 0.88;
}

.btn-danger {
  background: var(--clr-surface);
  color: var(--clr-danger);
  border: 1px solid #f5c2c7;
}

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

.btn-sm {
  padding: 5px 12px;
  height: 30px;
  font-size: 12px;
}

/* ── FORM ELEMENTS ──────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--clr-text);
  background: var(--clr-surface);
  transition: border-color var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.08);
}

.form-control.is-invalid {
  border-color: var(--clr-primary);
}

.invalid-feedback {
  display: block;
  font-size: 12px;
  color: var(--clr-primary);
  margin-top: 4px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236C757D' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 36px;
}

/* ── ALERT ──────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success {
  background: var(--clr-success-bg);
  color: var(--clr-success);
  border: 1px solid #A3CFBB;
}

.alert-danger {
  background: var(--clr-danger-bg);
  color: var(--clr-danger);
  border: 1px solid #F1AEB5;
}

.alert-info {
  background: var(--clr-info-bg);
  color: var(--clr-info);
  border: 1px solid #9EC5FE;
}

.alert-warning {
  background: var(--clr-warning-bg);
  color: var(--clr-warning);
  border: 1px solid #FFE69C;
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid var(--clr-border);
  font-size: 13px;
  color: var(--clr-text-secondary);
}

.pagination {
  display: flex;
  gap: 4px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}

.page-link:hover {
  background: var(--clr-primary-bg);
  border-color: var(--clr-primary);
  color: var(--clr-primary);
}

.page-link.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: white;
}

.page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── UTILITY ────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

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

.text-muted {
  color: var(--clr-text-muted);
}

.text-danger {
  color: var(--clr-primary);
}

.text-success {
  color: var(--clr-success);
}

.fw-bold {
  font-weight: 700;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.ms-auto {
  margin-left: auto;
}

.w-100 {
  width: 100%;
}

/* ── TOAST ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: white;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  max-width: 320px;
}

.toast-item.success {
  background: var(--clr-success);
}

.toast-item.error {
  background: var(--clr-primary);
}

.toast-item.info {
  background: #0D6EFD;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

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

/* ── LOGIN PAGE (guest layout) ──────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/Kampus-Minangkabau.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) saturate(0.8);
}

.login-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(176, 22, 25, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.login-box {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  padding: 0 20px;
}

.login-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.login-brand {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  overflow: hidden;
  background: white;
  padding: 4px;
  border: 2px solid rgba(227, 30, 36, 0.15);
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  color: #1A1A2E;
  letter-spacing: -0.5px;
}

.login-title span {
  color: var(--clr-primary);
}

.login-subtitle {
  font-size: 12px;
  color: var(--clr-text-secondary);
  margin-top: 4px;
}

.login-role-tabs {
  display: flex;
  background: var(--clr-surface-2);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.login-role-tab {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-text-secondary);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
}

.login-role-tab.active {
  background: white;
  color: var(--clr-primary);
  box-shadow: var(--shadow-sm);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .main-content {
    margin-left: 0;
  }

  .top-header {
    left: 0;
  }

  .page-body {
    padding: 20px 16px;
  }
}

/* ══════════════════════════════════════════════════════════════
   STUDENT COLOR THEME PANEL
   ══════════════════════════════════════════════════════════════ */

/* Trigger button in header (student only) */
.theme-trigger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--sidebar-accent, #E63946);
  background: var(--sidebar-accent, #E63946);
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}
.theme-trigger-btn:hover {
  background: var(--sidebar-mid, #457B9D);
  color: white;
  border-color: var(--sidebar-mid, #457B9D);
}
.theme-trigger-btn.active {
  background: var(--sidebar-bg, #1D3557);
  color: white;
  border-color: var(--sidebar-bg, #1D3557);
}

/* Panel Backdrop */
.theme-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: transparent;
}

/* Slide Panel */
.theme-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.theme-panel.open {
  transform: translateX(0);
}

.theme-panel-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafbfc;
  flex-shrink: 0;
}
.theme-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}
.theme-panel-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.15s;
}
.theme-panel-close:hover {
  background: #e2e8f0;
  color: #334155;
}

.theme-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Palette Item */
.theme-palette-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
  background: #fafbfc;
}
.theme-palette-item:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.theme-palette-item.selected {
  border-color: var(--sidebar-accent, #5790AB);
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.theme-palette-swatches {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}
.theme-swatch {
  width: 22px;
  height: 36px;
  border-radius: 6px;
}
.theme-swatch:first-child { border-radius: 8px 4px 4px 8px; }
.theme-swatch:last-child  { border-radius: 4px 8px 8px 4px; }

.theme-palette-info {
  flex: 1;
}
.theme-palette-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}
.theme-palette-desc {
  font-size: 11px;
  color: #94a3b8;
}

.theme-active-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sidebar-accent, #5790AB);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}
.theme-palette-item.selected .theme-active-check {
  opacity: 1;
  transform: scale(1);
}

/* Sidebar user section also themes */
.sidebar-user {
  transition: background 0.4s ease;
}

/* Sidebar brand border transition */
.sidebar-brand,
.sidebar-footer {
  transition: border-color 0.4s ease;
}