/* Global preset adjustments selected by admin */
html[data-ui-theme='classic_light'] {
  --bs-primary: #696cff;
}

html[data-ui-theme='soft_light'] {
  --bs-primary: #3f9f8f;
}

html[data-ui-theme='soft_light'] body {
  background: linear-gradient(180deg, #f8fbfc 0%, #f1f5f8 100%);
}

html[data-ui-theme='soft_light'] .card,
html[data-ui-theme='soft_light'] .modal-content,
html[data-ui-theme='soft_light'] .dropdown-menu {
  border-radius: 14px;
}

html[data-ui-theme='soft_light'] #layout-menu {
  background: linear-gradient(180deg, #ffffff 0%, #f2f7f5 100%);
}

html[data-ui-theme='dark_modern'] {
  --bs-primary: #5b8cff;
}

html[data-ui-theme='dark_modern'] body {
  background: linear-gradient(180deg, #121923 0%, #0f1620 100%);
}

html[data-ui-theme='dark_modern'] .card,
html[data-ui-theme='dark_modern'] .modal-content,
html[data-ui-theme='dark_modern'] .dropdown-menu {
  border-radius: 14px;
}

html[data-ui-theme='dark_modern'] #layout-menu {
  background: linear-gradient(180deg, #1d2733 0%, #131b26 100%);
}

html[data-ui-theme='dark_modern'] .table thead th {
  color: #cdd8ea;
}

/* Theme manager page */
.theme-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.theme-option-card {
  border: 1px solid rgba(68, 86, 108, 0.18);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.theme-option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.12);
}

.theme-option-card.is-active {
  border-color: rgba(76, 110, 245, 0.6);
  box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.16);
}

.theme-option-body {
  padding: 0.85rem 0.95rem 1rem;
}

.theme-option-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

.theme-option-desc {
  margin: 0;
  color: #5e6f82;
  font-size: 0.86rem;
}

.theme-preview {
  height: 150px;
  border-bottom: 1px solid rgba(68, 86, 108, 0.15);
  padding: 0.65rem;
}

.theme-preview-shell {
  border-radius: 12px;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 54px 1fr;
}

.theme-preview-side {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem 0.35rem;
}

.theme-preview-dot {
  height: 5px;
  width: 100%;
  border-radius: 999px;
}

.theme-preview-main {
  padding: 0.5rem;
  display: grid;
  gap: 0.35rem;
  grid-template-rows: 16px 1fr 16px;
}

.theme-preview-pill {
  border-radius: 999px;
}

.theme-preview-card {
  border-radius: 8px;
}

.theme-preview--classic .theme-preview-shell {
  background: #f5f6f9;
}

.theme-preview--classic .theme-preview-side {
  background: #ffffff;
}

.theme-preview--classic .theme-preview-dot {
  background: rgba(105, 108, 255, 0.46);
}

.theme-preview--classic .theme-preview-pill {
  background: #d6dbf5;
}

.theme-preview--classic .theme-preview-card {
  background: #ffffff;
  border: 1px solid rgba(68, 86, 108, 0.16);
}

.theme-preview--soft .theme-preview-shell {
  background: #ecf3f3;
}

.theme-preview--soft .theme-preview-side {
  background: #f7fbfa;
}

.theme-preview--soft .theme-preview-dot {
  background: rgba(63, 159, 143, 0.52);
}

.theme-preview--soft .theme-preview-pill {
  background: #d8ece8;
}

.theme-preview--soft .theme-preview-card {
  background: #ffffff;
  border: 1px solid rgba(63, 159, 143, 0.24);
}

.theme-preview--dark .theme-preview-shell {
  background: #111925;
}

.theme-preview--dark .theme-preview-side {
  background: #1b2432;
}

.theme-preview--dark .theme-preview-dot {
  background: rgba(91, 140, 255, 0.58);
}

.theme-preview--dark .theme-preview-pill {
  background: #303f58;
}

.theme-preview--dark .theme-preview-card {
  background: #212b3b;
  border: 1px solid rgba(126, 154, 214, 0.28);
}
