/**
 * RealBoard dark theme — a quiet counterpart to light mode.
 *
 * Same layout, radius, and brand blue. Surfaces lift with color, not gradients.
 *
 * Palette (slate, matching light):
 *   page     #0f172a
 *   surface  #1e293b   cards, header, modals
 *   input    #0f172a
 *   border   #334155
 *   text     #f1f5f9   muted #94a3b8
 *   action   #0c6af4
 */

html[data-theme="dark"] {
  --rl-ink: #f1f5f9;
  --rl-muted: #94a3b8;
  --rl-border: #334155;
  --rl-surface: #1e293b;
  --rl-search-bg: #0f172a;
  --rl-accent: #8b5cf6;
  --rl-accent-soft: #8b5cf6;
  --rl-blue: #0c6af4;
  --rl-page: #0f172a;
  --rl-elevated: #1e293b;
  --rl-panel: #1e293b;
  --rl-hover: rgba(255, 255, 255, 0.06);
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;
  --surface: #1e293b;
  --bg: #0f172a;
  --accent: #5b5cf0;
  --accent-dark: #4f46e5;
  color-scheme: dark;
}

html[data-theme="dark"] body,
html[data-theme="dark"] body.bagPadd {
  background: var(--rl-page) !important;
  color: var(--rl-ink);
}

/* =========================================================
   Dashboard (board list)
   ========================================================= */

html[data-theme="dark"] .rl-dashboard {
  --rl-ink: #f1f5f9;
  --rl-muted: #94a3b8;
  --rl-border: #334155;
  --rl-surface: #1e293b;
  --rl-search-bg: #0f172a;
  --rl-accent: #8b5cf6;
  --rl-accent-soft: #8b5cf6;
  --rl-blue: #0c6af4;
  background-color: var(--rl-page);
  color: var(--rl-ink);
}

html[data-theme="dark"] body:has(.rl-dashboard) {
  background-color: var(--rl-page) !important;
}

html[data-theme="dark"] .rl-dashboard .navbar-custom,
html[data-theme="dark"] .rl-dashboard .header-style-rl {
  background: var(--rl-surface) !important;
  border-bottom-color: var(--rl-border);
}

html[data-theme="dark"] .rl-dashboard .mainPageBackground,
html[data-theme="dark"] .rl-dashboard .content-page-without-sidebar,
html[data-theme="dark"] .rl-dashboard .content-page-with-sidebar {
  background-color: var(--rl-page) !important;
}

html[data-theme="dark"] .rl-dashboard .header-brand-name {
  color: var(--rl-ink);
}

html[data-theme="dark"] .rl-dashboard .header-search {
  background: var(--rl-search-bg);
  border-color: var(--rl-border);
}

html[data-theme="dark"] .rl-dashboard .header-search:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

html[data-theme="dark"] .rl-dashboard .header-search input {
  color: var(--rl-ink);
}

html[data-theme="dark"] .rl-dashboard .header-search-kbd {
  background: #1e293b;
  border-color: var(--rl-border);
  color: var(--rl-muted);
}

html[data-theme="dark"] .rl-dashboard .header-icon-btn {
  color: #94a3b8;
}

html[data-theme="dark"] .rl-dashboard .header-icon-btn:hover {
  background: var(--rl-hover);
  color: var(--rl-ink);
}

html[data-theme="dark"] .rl-dashboard .header-notif-badge {
  background: var(--rl-accent-soft);
  border-color: var(--rl-surface);
  color: #fff;
}

html[data-theme="dark"] .rl-dashboard .header-profile:hover {
  background: var(--rl-hover);
}

html[data-theme="dark"] .rl-dashboard .header-avatar,
html[data-theme="dark"] .rl-dashboard .owner-avatar,
html[data-theme="dark"] .rl-dashboard .header-notif-avatar,
html[data-theme="dark"] .rl-section .header-notif-avatar {
  background: rgba(12, 106, 244, 0.2);
  color: #93c5fd;
}

html[data-theme="dark"] .rl-dashboard .title-welcome-text {
  color: #f8fafc;
}

html[data-theme="dark"] .rl-dashboard .desc-welcome-text {
  color: var(--rl-muted);
}

html[data-theme="dark"] .rl-dashboard .welcome-filter-btn {
  background: var(--rl-surface);
  border-color: var(--rl-border);
  color: #94a3b8;
}

html[data-theme="dark"] .rl-dashboard .welcome-filter-btn:hover {
  background: #334155;
  color: var(--rl-ink);
}

html[data-theme="dark"] .rl-dashboard .add-board-button {
  background-color: var(--rl-blue);
  box-shadow: 0 8px 20px rgba(12, 106, 244, 0.28);
}

html[data-theme="dark"] .rl-dashboard .add-board-button:hover {
  background-color: #2580f7;
  box-shadow: 0 10px 24px rgba(12, 106, 244, 0.36);
  filter: none;
}

html[data-theme="dark"] .rl-dashboard .switch-button-box {
  background: var(--rl-surface);
  border-color: var(--rl-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .rl-dashboard .switch-tab,
html[data-theme="dark"] .rl-dashboard .switch-button-box .switch,
html[data-theme="dark"] .rl-dashboard .switch-button-box .activeBoard {
  color: #cbd5e1;
}

html[data-theme="dark"] .rl-dashboard .switch-tab:hover:not(.is-active),
html[data-theme="dark"] .rl-dashboard .switch-button-box .switch:hover {
  background: var(--rl-hover);
}

html[data-theme="dark"] .rl-dashboard .switch-tab.is-active,
html[data-theme="dark"] .rl-dashboard .switch-button-box .activeBoard {
  background: var(--rl-blue);
  color: #fff;
}

html[data-theme="dark"] .rl-dashboard .card-label-container {
  background: var(--rl-surface);
  border-color: var(--rl-border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .rl-dashboard .icon-box {
  background-color: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

html[data-theme="dark"] .rl-dashboard .icon-box.labelp-2-icon {
  background-color: rgba(89, 193, 135, 0.16);
  color: #4ade80;
}

html[data-theme="dark"] .rl-dashboard .more-vert-btn {
  color: var(--rl-muted);
}

html[data-theme="dark"] .rl-dashboard .more-vert-btn:hover {
  background: var(--rl-hover);
  color: var(--rl-ink);
}

html[data-theme="dark"] .rl-dashboard .title-main-create {
  color: #f1f5f9;
}

html[data-theme="dark"] .rl-dashboard .assignment-topic-style {
  background-color: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

html[data-theme="dark"] .rl-dashboard .assignment-topic-style.assignment-2-style {
  background-color: rgba(89, 193, 135, 0.16);
  color: #4ade80;
}

html[data-theme="dark"] .rl-dashboard .top-card-style,
html[data-theme="dark"] .rl-dashboard .assignment-date-container,
html[data-theme="dark"] .rl-dashboard .assignment-label-box,
html[data-theme="dark"] .rl-dashboard .total-card-section {
  border-color: #334155;
}

html[data-theme="dark"] .rl-dashboard .meta-label,
html[data-theme="dark"] .rl-dashboard .owner-role,
html[data-theme="dark"] .rl-dashboard .board-card-desc {
  color: var(--rl-muted);
}

html[data-theme="dark"] .rl-dashboard .meta-value,
html[data-theme="dark"] .rl-dashboard .stat-number,
html[data-theme="dark"] .rl-dashboard .owner-name {
  color: #f1f5f9;
}

html[data-theme="dark"] .rl-dashboard .date-icon {
  color: #a78bfa;
}

html[data-theme="dark"] .rl-dashboard .card-created-on {
  background: #0f172a;
  border-color: #334155;
  color: #94a3b8;
}

html[data-theme="dark"] .rl-dashboard .card-created-on .material-symbols-outlined {
  color: #60a5fa;
}

html[data-theme="dark"] .rl-dashboard .card-created-on-label {
  color: var(--rl-muted);
}

html[data-theme="dark"] .rl-dashboard .card-created-on-value {
  color: #e2e8f0;
}

html[data-theme="dark"] .rl-dashboard .stat-box {
  background: #0f172a;
  border: none;
}

html[data-theme="dark"] .rl-dashboard .stat-sections {
  background: rgba(59, 130, 246, 0.12);
}

html[data-theme="dark"] .rl-dashboard .stat-cards {
  background: rgba(139, 92, 246, 0.12);
}

html[data-theme="dark"] .rl-dashboard .stat-sections .stat-icon-box {
  background: rgba(59, 130, 246, 0.22);
  color: #60a5fa;
  box-shadow: none;
}

html[data-theme="dark"] .rl-dashboard .stat-cards .stat-icon-box {
  background: rgba(139, 92, 246, 0.22);
  color: #a78bfa;
  box-shadow: none;
}

html[data-theme="dark"] .rl-dashboard .view-board-btn {
  border: 1.5px solid #60a5fa;
  background: rgba(12, 106, 244, 0.14);
  color: #93c5fd;
  font-weight: 500;
  box-shadow: none;
}

html[data-theme="dark"] .rl-dashboard .view-board-btn:hover {
  background: rgba(12, 106, 244, 0.24);
  border-color: #93c5fd;
  color: #dbeafe;
  box-shadow: none;
  filter: none;
}

html[data-theme="dark"] .rl-dashboard .dashboard-empty,
html[data-theme="dark"] .rl-dashboard .dashboard-empty h2 {
  color: var(--rl-muted);
}

html[data-theme="dark"] .rl-dashboard .header-actions .dropdown-menu,
html[data-theme="dark"] .rl-section .header-actions .dropdown-menu,
html[data-theme="dark"] .rl-dashboard .header-dropdown,
html[data-theme="dark"] .rl-section .header-dropdown {
  background: var(--rl-surface) !important;
  border: 1px solid var(--rl-border) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .rl-dashboard .header-dropdown-head,
html[data-theme="dark"] .rl-section .header-dropdown-head,
html[data-theme="dark"] .rl-dashboard .header-dropdown-profile,
html[data-theme="dark"] .rl-section .header-dropdown-profile {
  background: #0f172a;
  border-bottom-color: var(--rl-border);
}

html[data-theme="dark"] .rl-dashboard .header-dropdown-head .material-symbols-outlined,
html[data-theme="dark"] .rl-section .header-dropdown-head .material-symbols-outlined {
  color: #60a5fa;
}

html[data-theme="dark"] .rl-dashboard .header-dropdown-head h5,
html[data-theme="dark"] .rl-section .header-dropdown-head h5,
html[data-theme="dark"] .rl-dashboard .header-dropdown-username,
html[data-theme="dark"] .rl-section .header-dropdown-username,
html[data-theme="dark"] .rl-dashboard .header-notif-title,
html[data-theme="dark"] .rl-section .header-notif-title {
  color: #f1f5f9;
}

html[data-theme="dark"] .rl-dashboard .header-dropdown-welcome,
html[data-theme="dark"] .rl-section .header-dropdown-welcome,
html[data-theme="dark"] .rl-dashboard .header-notif-time,
html[data-theme="dark"] .rl-section .header-notif-time,
html[data-theme="dark"] .rl-dashboard .header-dropdown-empty,
html[data-theme="dark"] .rl-section .header-dropdown-empty,
html[data-theme="dark"] .rl-dashboard .header-dropdown-empty p,
html[data-theme="dark"] .rl-section .header-dropdown-empty p {
  color: #94a3b8;
}

html[data-theme="dark"] .rl-dashboard .header-dropdown-empty .material-symbols-outlined,
html[data-theme="dark"] .rl-section .header-dropdown-empty .material-symbols-outlined {
  color: #475569;
}

html[data-theme="dark"] .rl-dashboard .header-notif-item:hover,
html[data-theme="dark"] .rl-section .header-notif-item:hover,
html[data-theme="dark"] .rl-dashboard .header-lang-item:hover,
html[data-theme="dark"] .rl-section .header-lang-item:hover,
html[data-theme="dark"] .rl-dashboard .header-menu-item:hover,
html[data-theme="dark"] .rl-section .header-menu-item:hover {
  background: var(--rl-hover) !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .rl-dashboard .header-lang-item,
html[data-theme="dark"] .rl-section .header-lang-item,
html[data-theme="dark"] .rl-dashboard .header-menu-item,
html[data-theme="dark"] .rl-section .header-menu-item {
  color: #e2e8f0 !important;
}

html[data-theme="dark"] .rl-dashboard .header-lang-item.is-active,
html[data-theme="dark"] .rl-section .header-lang-item.is-active {
  background: rgba(12, 106, 244, 0.14) !important;
  color: #93c5fd !important;
}

html[data-theme="dark"] .rl-dashboard .header-lang-item .material-symbols-outlined,
html[data-theme="dark"] .rl-section .header-lang-item .material-symbols-outlined {
  color: #60a5fa;
}

html[data-theme="dark"] .rl-dashboard .header-menu-item .material-symbols-outlined,
html[data-theme="dark"] .rl-section .header-menu-item .material-symbols-outlined {
  color: #94a3b8;
}

html[data-theme="dark"] .rl-dashboard .header-menu-item.is-danger,
html[data-theme="dark"] .rl-section .header-menu-item.is-danger {
  color: #fca5a5 !important;
}

html[data-theme="dark"] .rl-dashboard .header-menu-item.is-danger .material-symbols-outlined,
html[data-theme="dark"] .rl-section .header-menu-item.is-danger .material-symbols-outlined {
  color: #f87171;
}

html[data-theme="dark"] .rl-dashboard .header-menu-item.is-danger:hover,
html[data-theme="dark"] .rl-section .header-menu-item.is-danger:hover {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #fecaca !important;
}

html[data-theme="dark"] .rl-dashboard .card-menu,
html[data-theme="dark"] .rl-section .card-menu {
  background: var(--rl-surface) !important;
  border: 1px solid var(--rl-border) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .rl-dashboard .header-notif-btn.danger,
html[data-theme="dark"] .rl-section .header-notif-btn.danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

html[data-theme="dark"] .rl-dashboard .header-actions .dropdown-menu .dropdown-item,
html[data-theme="dark"] .rl-section .header-actions .dropdown-menu .dropdown-item,
html[data-theme="dark"] .rl-dashboard .noti-title,
html[data-theme="dark"] .rl-section .noti-title,
html[data-theme="dark"] .rl-dashboard .notify-item,
html[data-theme="dark"] .rl-section .notify-item,
html[data-theme="dark"] .rl-dashboard .profile-dropdown,
html[data-theme="dark"] .rl-section .profile-dropdown {
  color: #e2e8f0;
  background-color: transparent;
}

html[data-theme="dark"] .rl-dashboard .header-actions .dropdown-menu .dropdown-item:hover,
html[data-theme="dark"] .rl-section .header-actions .dropdown-menu .dropdown-item:hover,
html[data-theme="dark"] .rl-dashboard .notify-item:hover,
html[data-theme="dark"] .rl-section .notify-item:hover {
  background: var(--rl-hover);
  color: #f1f5f9;
}

@media (max-width: 640px) {
  html[data-theme="dark"] .rl-dashboard .assignment-label-box {
    border-bottom-color: #334155;
  }
}

/* =========================================================
   Section / kanban view
   ========================================================= */

html[data-theme="dark"] .rl-section {
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;
  --surface: #1e293b;
  --bg: #0f172a;
  --accent: #5b5cf0;
  --accent-dark: #4f46e5;
  --rl-ink: #f1f5f9;
  --rl-muted: #94a3b8;
  --rl-border: #334155;
  --rl-surface: #1e293b;
  --rl-search-bg: #0f172a;
  --rl-accent: #8b5cf6;
  --rl-accent-soft: #8b5cf6;
  background: var(--bg);
  color: var(--ink);
}

html[data-theme="dark"] body:has(.rl-section) {
  background-color: var(--bg) !important;
}

html[data-theme="dark"] .rl-section .mainPageBackground,
html[data-theme="dark"] .rl-section .content-page-without-sidebar,
html[data-theme="dark"] .rl-section .content-page-with-sidebar,
html[data-theme="dark"] .rl-section .board-app {
  background: var(--bg) !important;
}

html[data-theme="dark"] .rl-section .navbar-custom,
html[data-theme="dark"] .rl-section .header-style-rl {
  background: var(--rl-surface) !important;
  border-bottom: 1px solid var(--border);
}

html[data-theme="dark"] .rl-section .header-search {
  background: var(--rl-search-bg);
  border-color: var(--border);
}

html[data-theme="dark"] .rl-section .header-search:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

html[data-theme="dark"] .rl-section .header-search-kbd {
  background: #1e293b;
  border-color: var(--border);
  color: var(--muted);
}

html[data-theme="dark"] .rl-section .header-icon-btn,
html[data-theme="dark"] .rl-section .icon-btn {
  color: #94a3b8;
}

html[data-theme="dark"] .rl-section .header-icon-btn:hover,
html[data-theme="dark"] .rl-section .icon-btn:hover {
  background: var(--rl-hover);
  color: var(--ink);
}

html[data-theme="dark"] .rl-section .header-notif-badge {
  background: var(--rl-accent-soft);
  border-color: var(--surface);
}

html[data-theme="dark"] .rl-section .header-profile:hover {
  background: var(--rl-hover);
}

html[data-theme="dark"] .rl-section .header-avatar,
html[data-theme="dark"] .rl-section .avatar {
  background: rgba(12, 106, 244, 0.2);
  color: #93c5fd;
}

html[data-theme="dark"] .rl-section .board-meta {
  background: var(--surface);
  border-bottom-color: var(--border);
}

html[data-theme="dark"] .rl-section .board-meta-icon {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  box-shadow: none;
  border: none;
}

html[data-theme="dark"] .rl-section .sections-count-pill {
  background: rgba(12, 106, 244, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
  color: #93c5fd;
}

html[data-theme="dark"] .rl-section .board-title {
  color: var(--rl-ink);
}

html[data-theme="dark"] .rl-section .board-meta-desc {
  color: var(--rl-muted);
}

html[data-theme="dark"] .rl-section .column-instructions,
html[data-theme="dark"] .rl-section .column-author,
html[data-theme="dark"] .rl-section .column-desc,
html[data-theme="dark"] .rl-section .inner-card-desc {
  color: #94a3b8;
}

html[data-theme="dark"] .rl-section .column-desc-empty {
  color: #64748b;
}

html[data-theme="dark"] .rl-section .add-section-btn {
  background: var(--rl-blue);
  box-shadow: 0 6px 16px rgba(12, 106, 244, 0.28);
}

html[data-theme="dark"] .rl-section .add-section-btn:hover {
  background: #2580f7;
  box-shadow: 0 8px 20px rgba(12, 106, 244, 0.34);
  filter: none;
}

html[data-theme="dark"] .rl-section .creating-card-container::-webkit-scrollbar-thumb {
  background: #475569;
}

html[data-theme="dark"] .rl-section .column-cards {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html[data-theme="dark"] .rl-section .column-cards::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html[data-theme="dark"] .rl-section .column-cards::-webkit-scrollbar-thumb {
  background: transparent;
}

html[data-theme="dark"] .rl-section .board-column,
html[data-theme="dark"] .rl-section .col-green,
html[data-theme="dark"] .rl-section .col-blue,
html[data-theme="dark"] .rl-section .col-pink,
html[data-theme="dark"] .rl-section .col-lavender {
  background: color-mix(in srgb, var(--section-color) 22%, #0f172a);
  border-color: color-mix(in srgb, var(--section-color) 40%, #1e293b);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .rl-section .column-title-row h2,
html[data-theme="dark"] .rl-section .cards-count,
html[data-theme="dark"] .rl-section .user-name,
html[data-theme="dark"] .rl-section .inner-card-title {
  color: #f1f5f9;
}

html[data-theme="dark"] .rl-section .add-card-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 500;
  box-shadow: none;
}

html[data-theme="dark"] .rl-section .add-card-btn:hover {
  background: var(--accent-dark);
  border: none;
  color: #fff;
  box-shadow: none;
}

html[data-theme="dark"] .rl-section .inner-card {
  background: var(--surface);
  border-color: #334155;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  color: #f1f5f9;
}

html[data-theme="dark"] .rl-section .inner-card.is-clickable:hover {
  border-color: var(--border);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  background: #243044;
}

html[data-theme="dark"] .rl-section .inner-card-media,
html[data-theme="dark"] .rl-section .inner-card .card-media-container img.inner-card-media,
html[data-theme="dark"] .rl-section .inner-card .card-media-container video,
html[data-theme="dark"] .rl-section .inner-card .card-media-container iframe {
  background: #0f172a;
}

html[data-theme="dark"] .rl-section .amenity-grid {
  background: #0f172a;
}

html[data-theme="dark"] .rl-section .amenity-item {
  background: #334155;
  color: #e2e8f0;
}

html[data-theme="dark"] .rl-section .amenity-item .material-symbols-outlined {
  color: #93c5fd;
}

html[data-theme="dark"] .rl-section .inner-card-footer .face,
html[data-theme="dark"] .rl-section .stars .material-symbols-outlined {
  color: #64748b;
}

html[data-theme="dark"] .rl-section .stars .material-symbols-outlined.filled {
  color: #fbbf24;
}

html[data-theme="dark"] .rl-section .comment-box {
  background: #0f172a;
  border-color: #334155;
}

html[data-theme="dark"] .rl-section .comment-box button {
  color: var(--accent);
}

html[data-theme="dark"] .rl-section .inner-card-view-all {
  color: #93c5fd;
}

html[data-theme="dark"] .rl-section .inner-card-view-all:hover {
  color: #bfdbfe;
}

html[data-theme="dark"] .rl-section .section-nav button {
  background: var(--rl-blue, #0c6af4);
  border: none;
  box-shadow: 0 8px 20px rgba(12, 106, 244, 0.32);
  color: #fff;
}

html[data-theme="dark"] .rl-section .see-more-link {
  color: #93c5fd;
}

html[data-theme="dark"] .rl-section .borderCla {
  outline-color: #0c6af4;
}

/* Modals — same white-card idea, just dark */
html[data-theme="dark"] .modal-content {
  background: var(--rl-surface) !important;
  color: var(--rl-ink);
  border-color: var(--rl-border);
}

html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
  border-color: var(--rl-border);
}

html[data-theme="dark"] .modal-title,
html[data-theme="dark"] .modal-body,
html[data-theme="dark"] .modal-body label {
  color: #e2e8f0;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .modal-body input,
html[data-theme="dark"] .modal-body textarea,
html[data-theme="dark"] .modal-body select {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .modal-body input:focus,
html[data-theme="dark"] .modal-body textarea:focus {
  border-color: rgba(12, 106, 244, 0.55) !important;
  box-shadow: 0 0 0 2px rgba(12, 106, 244, 0.18) !important;
}

html[data-theme="dark"] .form-control::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .btn-primary {
  background: #0c6af4;
  border-color: transparent;
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn-light {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

html[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.7;
}

/* =========================================================
   Scrollbars
   ========================================================= */

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] .rl-dashboard,
html[data-theme="dark"] .rl-section,
html[data-theme="dark"] .rl-dashboard *,
html[data-theme="dark"] .rl-section *,
html[data-theme="dark"] .modal-body,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .noti-scroll {
  scrollbar-width: thin;
  scrollbar-color: #475569 #0f172a;
}

html[data-theme="dark"] ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #0f172a;
  border-radius: 999px;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 999px;
  border: 2px solid #0f172a;
  background-clip: padding-box;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
  border: 2px solid #0f172a;
  background-clip: padding-box;
}

html[data-theme="dark"] ::-webkit-scrollbar-corner {
  background: #0f172a;
}

html[data-theme="dark"] .rl-section .creating-card-container::-webkit-scrollbar-thumb {
  background: #475569;
  border: 2px solid transparent;
  background-clip: padding-box;
}

html[data-theme="dark"] .rl-section .column-cards::-webkit-scrollbar,
html[data-theme="dark"] .rl-section .column-cards::-webkit-scrollbar-thumb {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  background: transparent !important;
}

html[data-theme="dark"] .simplebar-scrollbar:before {
  background: #475569 !important;
}

html[data-theme="dark"] .simplebar-track {
  background: transparent !important;
}

html[data-theme="dark"] .color-picker-container {
  background: #1e293b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid #334155;
}

html[data-theme="dark"] .card-audio-tile {
  background: rgba(99, 91, 255, 0.16);
}

html[data-theme="dark"] .card-audio-tile:hover {
  background: rgba(99, 91, 255, 0.24);
}

html[data-theme="dark"] .card-audio-label {
  color: #eef2ff;
}

html[data-theme="dark"] .card-audio-from {
  color: #c7d2fe;
}

html[data-theme="dark"] .card-audio-play {
  background: #1e293b;
  color: #a5b4fc;
}
