﻿/* Dark mode styles */
[data-bs-theme=dark] {
  color-scheme: dark;
  --bs-body-color: #dee2e6;
  --bs-body-color-rgb: 222, 226, 230;
  --bs-body-bg: #212529;
  --bs-body-bg-rgb: 33, 37, 41;
  --bs-emphasis-color: #fff;
  --bs-emphasis-color-rgb: 255, 255, 255;
  --bs-secondary-color: rgba(222, 226, 230, 0.75);
  --bs-secondary-color-rgb: 222, 226, 230;
  --bs-secondary-bg: #343a40;
  --bs-secondary-bg-rgb: 52, 58, 64;
  --bs-tertiary-color: rgba(222, 226, 230, 0.5);
  --bs-tertiary-color-rgb: 222, 226, 230;
  --bs-tertiary-bg: #2b3035;
  --bs-tertiary-bg-rgb: 43, 48, 53;
  --bs-primary-text-emphasis: #6ea8fe;
  --bs-secondary-text-emphasis: #a7acb1;
  --bs-success-text-emphasis: #75b798;
  --bs-info-text-emphasis: #6edff6;
  --bs-warning-text-emphasis: #ffda6a;
  --bs-danger-text-emphasis: #ea868f;
  --bs-light-text-emphasis: #f8f9fa;
  --bs-dark-text-emphasis: #dee2e6;
  --bs-primary-bg-subtle: #031633;
  --bs-secondary-bg-subtle: #161719;
  --bs-success-bg-subtle: #051b11;
  --bs-info-bg-subtle: #032830;
  --bs-warning-bg-subtle: #332701;
  --bs-danger-bg-subtle: #2c0b0e;
  --bs-light-bg-subtle: #343a40;
  --bs-dark-bg-subtle: #1a1d20;
  --bs-primary-border-subtle: #084298;
  --bs-secondary-border-subtle: #41464b;
  --bs-success-border-subtle: #0f5132;
  --bs-info-border-subtle: #055160;
  --bs-warning-border-subtle: #664d03;
  --bs-danger-border-subtle: #842029;
  --bs-light-border-subtle: #495057;
  --bs-dark-border-subtle: #343a40;
  --bs-link-color: #6ea8fe;
  --bs-link-hover-color: #8bb9fe;
  --bs-link-color-rgb: 110, 168, 254;
  --bs-link-hover-color-rgb: 139, 185, 254;
  --bs-code-color: #e685b5;
  --bs-border-color: #495057;
  --bs-border-color-translucent: rgba(255, 255, 255, 0.15);
  --bs-form-valid-color: #75b798;
  --bs-form-valid-border-color: #75b798;
  --bs-form-invalid-color: #ea868f;
  --bs-form-invalid-border-color: #ea868f;
}

[data-bs-theme=dark] .navbar {
  --bs-navbar-color: rgba(222, 226, 230, 0.75);
  --bs-navbar-hover-color: #dee2e6;
  --bs-navbar-disabled-color: rgba(222, 226, 230, 0.25);
  --bs-navbar-active-color: #dee2e6;
  --bs-navbar-brand-color: #dee2e6;
  --bs-navbar-brand-hover-color: #dee2e6;
  --bs-navbar-toggler-border-color: rgba(222, 226, 230, 0.1);
}

[data-bs-theme=dark] .navbar-light {
  background-color: #212529 !important;
  border-color: #343a40 !important;
}

[data-bs-theme=dark] .bg-white {
  background-color: #212529 !important;
}

[data-bs-theme=dark] .bg-light {
  background-color: #2b3035 !important;
}

[data-bs-theme=dark] .border-bottom {
  border-color: #343a40 !important;
}

[data-bs-theme=dark] .border-top {
  border-color: #343a40 !important;
}

[data-bs-theme=dark] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28222, 226, 230, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

[data-bs-theme=dark] .text-muted {
  color: rgba(222, 226, 230, 0.75) !important;
}

[data-bs-theme=dark] .form-control {
  background-color: #2b3035;
  border-color: #495057;
  color: #dee2e6;
}

[data-bs-theme=dark] .form-control:focus {
  background-color: #2b3035;
  color: #dee2e6;
}

[data-bs-theme=dark] .form-select {
  background-color: #2b3035;
  border-color: #495057;
  color: #dee2e6;
}

/* Dark mode primary button styles are now in custom-theme.css */

/* Dark mode outline-primary button styles are now in custom-theme.css */

/* Theme toggle button */
.btn-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.btn-theme-toggle:hover {
  background-color: rgba(var(--bs-tertiary-bg-rgb), 0.3);
}

.btn-theme-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.theme-icon-light,
.theme-icon-dark,
.theme-icon-auto {
  display: none;
}

[data-bs-theme=light] .theme-icon-light {
  display: block;
}

[data-bs-theme=dark] .theme-icon-dark {
  display: block;
}

[data-bs-theme=auto] .theme-icon-auto {
  display: block;
}
