html, body {
  height: 100%;
  min-height: 100vh;
  overflow: hidden; /* Không scroll ngoài */
}

body::after {
  content: '';
  display: block;
  height: 1px;
}

body {
  background-color: #f8f9fa;
  overflow-x: hidden;
}

.wrapper {
	display: flex;
    height: 100vh;
    overflow: hidden;
	padding: 0;
    position: relative;
    margin-right: auto;
    margin-left: auto;
	flex-direction: row;
}
.sidebar {
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  width: 220px;
  min-width: 60px;
  max-width: 400px;
  background: linear-gradient(to right, #0d6efd, #6610f2);
  color: white;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.sidebar.collapsed {
  width: 60px;
}
.sidebar .resizer {
  width: 5px;
  background-color: #0056b3;
  cursor: ew-resize;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  transition: width 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  z-index: 10;
  opacity: 0.6;
}
.sidebar .resizer:hover {
  width: 6px;
  opacity: 1;
  background-color: #0066cc;
}
body.resizing .sidebar .resizer {
  opacity: 1;
  width: 6px;
  background-color: #0066cc;
}
.sidebar a {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar a:hover {
  background-color: #0b5ed7;
}
#copyright {
  margin-top: auto;
  text-align: center;
  font-size: 0.85rem;
  color: #FFF !important;
  padding: 10px 0;
  border-top: 1px solid #ddd;
  opacity: 0.8;
  pointer-events: none;
  user-select: none;
  font-weight: bold;
}
.sidebar-logo {
  max-width: 140px;
  filter: grayscale(50%);
  transition: filter 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.logo-link:hover .sidebar-logo,
.logo-link:focus .sidebar-logo {
  filter: grayscale(0%);
  opacity: 1;
}
.content {
  flex-grow: 1;
  overflow-y: auto; /* Chỉ scroll ở content */
  -webkit-overflow-scrolling: touch; /* mượt mà trên iOS */
}
.topbar {
    height: 65px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all 0.3s ease;
}


.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ddd;
}
.card-tooltip {
  position: relative;
  cursor: pointer;
}

.card-tooltip .tooltip-text {
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  text-align: left;
  border-radius: 0.25rem;
  padding: 0.5rem;
  font-size: 0.9rem;
  max-width: 250px;
  position: absolute;
  z-index: 10;
  bottom: 90%;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 768px) {
	
	/* Khi scroll xuống, co nhỏ topbar */
.topbar.shrink {
    height: 50px;
    padding: 0 0.8rem;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
  
  .sidebar {
    position: fixed;
    z-index: 1040;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.show {
    transform: translateX(0) !important;
    height: 100vh;
    transform: translateX(0);
  }
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1030;
    display: none;
  }
  .overlay.show {
    display: block;
  }
}

@media (max-width: 575.98px) {
  .bottom-spacer {
    height: 6rem;
    width: 100%;
    background: transparent; /* hoặc màu nền tùy bạn */
    flex-shrink: 0;
  }
}

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}
body.dark-mode .topbar {
  background-color: #1f1f1f;
  color: white;
}
body.dark-mode .sidebar {
  background-color: #1a237e;
}
body.dark-mode .sidebar a:hover {
  background-color: #3949ab;
}
body.dark-mode .avatar {
  background-color: #333 !important;
}

body.dark-mode .dropdown-menu {
  background-color: #2c2c2c;
  color: #ffffff;
}
body.dark-mode .dropdown-menu .dropdown-item {
  color: #ffffff;
}
body.dark-mode .dropdown-menu .dropdown-item:hover {
  background-color: #3c3c3c;
}
body.dark-mode .dropdown-divider {
  border-top: 1px solid #555;
}

.sidebar a.active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: bold;
}
body.dark-mode .sidebar a.active {
  background-color: rgba(255, 255, 255, 0.2);
}
/* ========== MODAL STYLING - PROFESSIONAL & UNIFIED ========== */

/* Modal Backdrop */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

.modal-backdrop.show {
  opacity: 1;
}

/* Modal Dialog - Base */
.modal-dialog {
  margin: 1.75rem auto;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.fade .modal-dialog {
  transform: translate(0, -50px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: translate(0, 0);
  opacity: 1;
}

/* Modal Content - Professional Styling */
.modal-content {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.modal-content:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Modal Header - Unified Style */
.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-bottom: none;
  padding: 1.25rem 1.5rem;
  position: relative;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.5;
}

.modal-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Icon styling trong modal title */
.modal-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* Đảm bảo emoji/icon hiển thị đúng */
.modal-title .modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem !important;
  line-height: 1 !important;
  vertical-align: middle;
  margin-right: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.modal-title > span:not(.modal-icon) {
  display: inline-block;
  vertical-align: middle;
}

.btn-close {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  padding: 0.5rem;
  opacity: 0.9;
  transition: all 0.2s ease;
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  background-size: 1em;
  background-repeat: no-repeat;
  background-position: center;
  width: 1em;
  height: 1em;
}

.btn-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transform: rotate(90deg);
}

.btn-close:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5);
}

/* Modal Body - Consistent Padding & Styling */
.modal-body {
  padding: 1.5rem;
  color: #212529;
  line-height: 1.6;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Modal Footer - Professional Style */
.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 1.5rem;
  background-color: #f8f9fa;
  display: flex;
  gap: 0.75rem;
}

.modal-footer .btn {
  border-radius: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.modal-footer .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-footer .btn:active {
  transform: translateY(0);
}

/* Course Modal Specific Styles */
#courseModal .modal-content {
  max-width: 100%;
}

#courseModal .modal-body {
  padding: 1.75rem;
}

#courseModal .modal-body h5 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #212529;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

#courseModal .modal-body h5 .badge {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

#courseModal .modal-body p {
  margin-bottom: 0.75rem;
  color: #495057;
}

#courseModal .modal-body strong {
  color: #212529;
  font-weight: 600;
}

/* Form Elements in Modals */
.modal .form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.modal .form-control {
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  padding: 0.625rem 0.75rem;
  transition: all 0.2s ease;
}

.modal .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.modal .input-group .btn {
  border-radius: 0 0.5rem 0.5rem 0;
}

.modal .alert {
  border-radius: 0.5rem;
  border: none;
  padding: 0.875rem 1rem;
}

/* Loading States */
.modal-body .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
}

/* Dark Mode - Modal Styling */
body.dark-mode .modal-content {
  background-color: #1e1e2e;
  color: #e0e0e0;
  border-color: #333;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.dark-mode .modal-content:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.dark-mode .modal-header {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: #ffffff;
}

body.dark-mode .modal-body {
  background-color: #1e1e2e;
  color: #e0e0e0;
}

body.dark-mode .modal-body::-webkit-scrollbar-track {
  background: #2c2c2c;
}

body.dark-mode .modal-body::-webkit-scrollbar-thumb {
  background: #555;
}

body.dark-mode .modal-body::-webkit-scrollbar-thumb:hover {
  background: #666;
}

body.dark-mode .modal-footer {
  background-color: #252535;
  border-top-color: #333;
}

body.dark-mode .modal .form-control {
  background-color: #2c2c2c;
  border-color: #444;
  color: #e0e0e0;
}

body.dark-mode .modal .form-control:focus {
  background-color: #333;
  border-color: #667eea;
  color: #fff;
}

body.dark-mode .modal .form-label {
  color: #d0d0d0;
}

body.dark-mode #courseModal .modal-body h5 {
  color: #e0e0e0;
}

body.dark-mode #courseModal .modal-body p {
  color: #c0c0c0;
}

body.dark-mode #courseModal .modal-body strong {
  color: #e0e0e0;
}

body.dark-mode .modal .btn-close {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  opacity: 0.8;
}

body.dark-mode .modal .btn-close:hover {
  opacity: 1;
}

/* Animation for Modal Entry */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal.show .modal-dialog {
  animation: modalSlideIn 0.3s ease-out;
}

/* Responsive Modal Sizes */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .modal-content {
    border-radius: 0.75rem;
  }
  
  .modal-header {
    padding: 1rem 1.25rem;
  }
  
  .modal-body {
    padding: 1.25rem;
  }
  
  .modal-footer {
    padding: 0.875rem 1.25rem;
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

/* Special Modal Variants */
.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.modal-lg .modal-content {
  max-width: 800px;
}

/* Button Groups in Modal */
.modal-body .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal-body .btn {
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.modal-body .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.modal-body .btn:active {
  transform: translateY(0);
}

/* Course Detail Specific Styles */
.course-detail-content {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-info-section {
  line-height: 1.8;
}

.course-info-section p {
  margin-bottom: 0.75rem;
}

.course-description {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 3px solid #667eea;
}

body.dark-mode .course-description {
  background-color: #2c2c2c;
  border-left-color: #667eea;
}

.course-actions {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .course-actions {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.course-actions .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Major Selection Modal Enhancements */
#majorsContainer {
  min-height: 200px;
  padding: 1rem 0;
}

#majorsContainer .btn-major {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

#majorsContainer .btn-major::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#majorsContainer .btn-major:active::before {
  width: 300px;
  height: 300px;
}

#majorsContainer .btn-primary {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Form Validation Styles */
.modal .form-control.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6 .4.4.4-.4'/%3e%3cpath d='m6 6.5v2'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.modal .form-control.is-valid {
  border-color: #198754;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.98-.98-.98-.98-.98.98.98.98zm-.98-4.58.98-.98.98.98-.98.98-.98-.98zm4.58 4.58.98-.98-.98-.98-.98.98.98.98zm-.98-4.58.98-.98.98.98-.98.98-.98-.98z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Loading State Improvements */
.modal-body .spinner-border {
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* Alert Messages in Modal */
.modal-body .alert {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
  }
}

/* Smooth transitions for all interactive elements */
.modal * {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus visible improvements */
.modal .btn:focus-visible,
.modal .form-control:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Accessibility improvements */
.modal[aria-hidden="false"] {
  pointer-events: auto;
}

.modal[aria-hidden="true"] {
  pointer-events: none;
}

#loadingOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.8);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #0d6efd;
  display: none;
}
body.dark-mode #loadingOverlay {
  background: rgba(0,0,0,0.8);
  color: #fff;
}

#loadingOverlay i {
  animation: spin 1s linear infinite;
  font-size: 3rem;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Full screen desktop layout - removed max-width constraint */
/* @media (min-width: 1270px) {
.wrapper{
    width: 1240px;
	}
} */

@media (min-width: 1200px) {
    #featured-courses .col-xl-2 {
      width: 20% !important;
    }
 }


@keyframes progressSlide {
  0%   { width: 0%; left: 0%; }
  50%  { width: 100%; left: 0%; }
  100% { width: 0%; left: 100%; }
}


@keyframes led-glow {
  0%, 100% {
    transform: translateX(0);
    text-shadow: 0 0 2px #ffd700, 0 0 6px #ffa500;
    opacity: 1;
  }
  50% {
    transform: translateX(3px);
    text-shadow: 0 0 4px #ffff00, 0 0 10px #ffcc00;
    opacity: 0.8;
  }
}

.star-animated {
  display: inline-block;
  transition: transform 0.2s ease, color 0.3s ease, text-shadow 0.3s ease;
  animation: none;
  cursor: pointer;
}

.star-animated:hover {
  color: gold;
  animation: led-glow 0.8s infinite alternate;
}

@keyframes glow-twice {
  0%, 100% {
    text-shadow: none;
    color: gold;
  }
  25%, 75% {
    text-shadow: 0 0 5px #fff700, 0 0 15px #ffcc00;
    color: #ffe066;
  }
  50% {
    text-shadow: none;
    color: gold;
  }
}

.star-glow {
  animation: glow-twice 1s ease-in-out 1;
}
/* Modal content */
#modalContent {
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
  transition: background-color 0.3s, color 0.3s;
}

/* Nút chuyên ngành */
#majorsContainer .btn-major {
  min-width: 120px;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Button chưa chọn */
#majorsContainer .btn-outline-primary {
  background-color: transparent;
  color: var(--bs-primary);
  border: 1px solid var(--bs-primary);
}

/* Button đã chọn */
#majorsContainer .btn-primary {
  background-color: var(--bs-primary);
  color: #fff;
  border: 1px solid var(--bs-primary);
}

/* Hover hiệu ứng */
#majorsContainer .btn-major:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Loading spinner trong majorsContainer */
#majorsLoading {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Hiệu ứng rung nhẹ khi click */
.btn-major.ripple {
  animation: rippleEffect 0.3s linear;
}

@keyframes rippleEffect {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Light Theme */
body.light #modalContent {
  background-color: #fff;
  color: #212529;
}
body.light .btn-outline-primary {
  color: #0d6efd;
  border-color: #0d6efd;
}
body.light .btn-primary {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0a58ca;
}

/* Dark Theme */
body.dark #modalContent {
  background-color: #1e1e1e;
  color: #f8f9fa;
}
body.dark .btn-outline-primary {
  color: #66b2ff;
  border-color: #66b2ff;
}
body.dark .btn-primary {
  background-color: #66b2ff;
  color: #000;
  border-color: #66b2ff;
}

body.resizing .sidebar {
  transition: none !important;
  pointer-events: none; /* Ngăn hover, click khi đang resize */
}

/* ========== DARK MODE - COMPREHENSIVE STYLES ========== */

/* Sidebar dark mode improvements */
body.dark-mode .sidebar {
  background: linear-gradient(to right, #1a237e, #283593);
}
body.dark-mode .sidebar .resizer {
  background-color: #3949ab;
}
body.dark-mode .sidebar .resizer:hover {
  background-color: #5c6bc0;
}
body.dark-mode #copyright {
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* Content area dark mode */
body.dark-mode .content {
  background-color: #121212;
  color: #e0e0e0;
}

/* Card dark mode */
body.dark-mode .card {
  background-color: #1e1e1e;
  border-color: #333;
  color: #e0e0e0;
}
body.dark-mode .card-header {
  background-color: #252525;
  border-color: #333;
  color: #fff;
}

/* ==================== DASHBOARD DARK MODE - PROFESSIONAL ENHANCEMENT ==================== */

/* Dashboard - Stat cards dark mode - Professional Enhancement */
body.dark-mode .stat-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  border: 1px solid rgba(79, 172, 254, 0.2) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

body.dark-mode .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(79, 172, 254, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.dark-mode .stat-card:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 
              0 0 20px rgba(79, 172, 254, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(79, 172, 254, 0.4) !important;
}

body.dark-mode .stat-card:hover::before {
  opacity: 1;
}

body.dark-mode .stat-card .card-body {
  position: relative;
  z-index: 1;
}

body.dark-mode .stat-card .ghost-icon {
  opacity: 0.08;
  filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.3));
}

body.dark-mode .stat-card .counter {
  text-shadow: 0 2px 10px rgba(79, 172, 254, 0.3);
  color: #ffffff !important;
}

body.dark-mode .stat-card .fs-6 {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Stat card color variants in dark mode */
body.dark-mode .stat-card.bg-primary {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%) !important;
  border-color: rgba(33, 150, 243, 0.3) !important;
}

body.dark-mode .stat-card.bg-success {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%) !important;
  border-color: rgba(76, 175, 80, 0.3) !important;
}

body.dark-mode .stat-card.bg-info {
  background: linear-gradient(135deg, #01579b 0%, #0277bd 100%) !important;
  border-color: rgba(3, 169, 244, 0.3) !important;
}

body.dark-mode .stat-card.bg-warning {
  background: linear-gradient(135deg, #e65100 0%, #f57c00 100%) !important;
  border-color: rgba(255, 152, 0, 0.3) !important;
}

/* Dashboard - Progress bar dark mode - Professional Enhancement */
body.dark-mode .progress {
  background-color: #1a1a2e;
  border: 1px solid rgba(79, 172, 254, 0.2);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

body.dark-mode .progress-bar {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #4facfe 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  box-shadow: 0 0 15px rgba(79, 172, 254, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.dark-mode .progress-bar.bg-danger {
  background: linear-gradient(90deg, #f44336 0%, #e91e63 100%);
  box-shadow: 0 0 15px rgba(244, 67, 54, 0.5);
}

body.dark-mode .progress-bar.bg-warning {
  background: linear-gradient(90deg, #ff9800 0%, #ffc107 100%);
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.5);
}

body.dark-mode .progress-bar.bg-success {
  background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Dashboard - Charts dark mode - Professional Enhancement */
body.dark-mode #chart-section,
body.dark-mode #chartPieCard {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(79, 172, 254, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #e0e0e0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

body.dark-mode #chart-section:hover,
body.dark-mode #chartPieCard:hover {
  border-color: rgba(79, 172, 254, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4),
              0 0 20px rgba(79, 172, 254, 0.15);
}

body.dark-mode #chart-section h5,
body.dark-mode #chartPieCard h5 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Dashboard - Featured courses dark mode - Professional Enhancement */
body.dark-mode .featured-course-item {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  border: 1px solid rgba(79, 172, 254, 0.2) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

body.dark-mode .featured-course-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

body.dark-mode .featured-course-item:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(79, 172, 254, 0.5) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5),
              0 0 25px rgba(79, 172, 254, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .featured-course-item:hover::after {
  left: 100%;
}

body.dark-mode .featured-course-item .course-title {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .featured-course-item small {
  color: rgba(255, 255, 255, 0.8) !important;
}

body.dark-mode .featured-course-item .btn-light {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

body.dark-mode .featured-course-item .btn-light:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Dashboard - AI Greeting dark mode - Professional Enhancement */
body.dark-mode #ai-greeting {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-left: 4px solid #4facfe;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.05),
              0 0 20px rgba(79, 172, 254, 0.1);
  color: #e0e0e0;
  position: relative;
  overflow: hidden;
}

body.dark-mode #ai-greeting::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #4facfe, #00f2fe);
  box-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

body.dark-mode #ai-greeting {
  border-left-color: transparent;
}

/* Dashboard - Schedule list dark mode - Professional Enhancement */
body.dark-mode #schedule-list .border {
  border: 1px solid rgba(79, 172, 254, 0.2) !important;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  color: #e0e0e0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  border-radius: 8px;
}

body.dark-mode #schedule-list .border:hover {
  border-color: rgba(79, 172, 254, 0.4) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
              0 0 15px rgba(79, 172, 254, 0.2);
  transform: translateX(4px);
}

body.dark-mode #schedule-list .border .fw-bold {
  color: #ffffff;
}

body.dark-mode #schedule-list .border .btn-outline-primary {
  border-color: rgba(79, 172, 254, 0.5);
  color: #4facfe;
  background-color: transparent;
}

body.dark-mode #schedule-list .border .btn-outline-primary:hover {
  background-color: rgba(79, 172, 254, 0.2);
  border-color: #4facfe;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
}

/* Dashboard - Ranking table dark mode - Professional Enhancement */
body.dark-mode .table {
  background-color: transparent !important;
  color: #e0e0e0 !important;
}

body.dark-mode .table thead {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .table thead th {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%) !important;
  color: #fff !important;
  border-color: rgba(79, 172, 254, 0.3) !important;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .table.table-bordered {
  border-color: rgba(79, 172, 254, 0.2) !important;
}

body.dark-mode .table.table-bordered th,
body.dark-mode .table.table-bordered td {
  border-color: rgba(79, 172, 254, 0.2) !important;
}

body.dark-mode .table tbody {
  background-color: transparent !important;
}

body.dark-mode .table tbody tr {
  background-color: #1a1a2e !important;
  border-color: rgba(79, 172, 254, 0.1) !important;
  transition: all 0.2s ease;
  color: #e0e0e0 !important;
}

body.dark-mode .table tbody tr td {
  background-color: transparent !important;
  color: #e0e0e0 !important;
  border-color: rgba(79, 172, 254, 0.1) !important;
}

body.dark-mode .table tbody tr:hover {
  background-color: #16213e !important;
  box-shadow: inset 0 0 20px rgba(79, 172, 254, 0.1);
  transform: scale(1.01);
}

body.dark-mode .table tbody tr:hover td {
  background-color: transparent !important;
}

body.dark-mode .table-primary {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.3) 0%, rgba(13, 110, 253, 0.2) 100%) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: inset 0 0 20px rgba(79, 172, 254, 0.2);
}

body.dark-mode .table-primary td {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.3) 0%, rgba(13, 110, 253, 0.2) 100%) !important;
  color: #fff !important;
}

body.dark-mode .table tbody td {
  border-color: rgba(79, 172, 254, 0.1) !important;
}

/* Override table-light class in dark mode */
body.dark-mode .table-light {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%) !important;
  color: #fff !important;
}

body.dark-mode .table-light th {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%) !important;
  color: #fff !important;
  border-color: rgba(79, 172, 254, 0.3) !important;
}

/* Highcharts dark mode styles */
body.dark-mode #chart-bar {
  background-color: transparent !important;
}

body.dark-mode .highcharts-container {
  background-color: transparent !important;
}

body.dark-mode .highcharts-background {
  fill: transparent !important;
}

body.dark-mode .highcharts-axis-labels text {
  fill: #e0e0e0 !important;
}

body.dark-mode .highcharts-axis-title {
  fill: #e0e0e0 !important;
}

body.dark-mode .highcharts-legend-item text {
  fill: #e0e0e0 !important;
}

body.dark-mode .highcharts-tooltip {
  background-color: rgba(26, 26, 46, 0.95) !important;
  border-color: rgba(79, 172, 254, 0.5) !important;
  color: #e0e0e0 !important;
}

body.dark-mode .highcharts-tooltip text {
  fill: #e0e0e0 !important;
}

body.dark-mode .highcharts-axis-line {
  stroke: rgba(79, 172, 254, 0.3) !important;
}

body.dark-mode .highcharts-grid-line {
  stroke: rgba(79, 172, 254, 0.1) !important;
}

body.dark-mode .highcharts-tick {
  stroke: rgba(79, 172, 254, 0.3) !important;
}

/* Dashboard - User info card dark mode */
body.dark-mode #user-info-box {
  background: transparent;
}

body.dark-mode .card#user-info-box {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(79, 172, 254, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode #user-name {
  color: #ffffff;
}

body.dark-mode #user-role strong {
  color: #4facfe;
}

/* Dashboard - Progress section card dark mode */
body.dark-mode #progress-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(79, 172, 254, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode #progress-section h5 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Dashboard - Badge dark mode enhancements */
body.dark-mode .badge.bg-primary {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%) !important;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.4);
  border: 1px solid rgba(79, 172, 254, 0.3);
}

body.dark-mode .badge.bg-secondary {
  background: linear-gradient(135deg, #424242 0%, #616161 100%) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.dark-mode .badge.bg-success {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%) !important;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

/* Dashboard - Rating stars dark mode */
body.dark-mode .rating-block .star-animated {
  filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.5));
}

/* Dashboard - Loading spinner dark mode */
body.dark-mode .spinner-border {
  border-color: rgba(79, 172, 254, 0.2);
  border-right-color: #4facfe;
}

body.dark-mode #dashboard-loading {
  background-color: #121212;
  color: #e0e0e0;
}

/* Dashboard - Empty state dark mode */
body.dark-mode .card.bg-white.border-danger-subtle {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  border-color: rgba(244, 67, 54, 0.3) !important;
  color: #e0e0e0;
}

body.dark-mode .card.bg-white.border-danger-subtle .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

body.dark-mode .card.bg-white.border-danger-subtle strong {
  color: #ffffff;
}

/* Courses - Course cards dark mode */
body.dark-mode .card-tooltip {
  background-color: #1e1e1e;
  border-color: #333;
}
body.dark-mode .card-tooltip:hover {
  background-color: #252525;
}
body.dark-mode .card-tooltip .tooltip-text {
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
}

/* Courses - Table dark mode */
body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
  background-color: #1a1a1a;
  color: #e0e0e0;
}
body.dark-mode .table-striped tbody tr:nth-of-type(even) {
  background-color: #1e1e1e;
  color: #e0e0e0;
}

/* Courses - Filters dark mode */
body.dark-mode .form-control,
body.dark-mode .form-select {
  background-color: #2c2c2c;
  border-color: #444;
  color: #e0e0e0;
}
body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
  background-color: #333;
  border-color: #0d6efd;
  color: #fff;
}
body.dark-mode .btn-outline-primary,
body.dark-mode .btn-outline-secondary {
  border-color: #444;
  color: #e0e0e0;
}
body.dark-mode .btn-outline-primary:hover,
body.dark-mode .btn-outline-secondary:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

/* Schedule - Calendar dark mode */
body.dark-mode .mini-day {
  background-color: #1e1e1e;
  border-color: #333;
  color: #e0e0e0;
}
body.dark-mode .mini-day.header {
  background-color: #252525;
  color: #fff;
}
body.dark-mode .mini-day.today {
  background-color: #0d6efd;
  color: white;
}
body.dark-mode .mini-day.selected {
  background-color: #3949ab;
  outline-color: #5c6bc0;
}
body.dark-mode .mini-day:hover {
  background-color: #2c2c2c;
}
body.dark-mode .calendar-hour {
  background-color: #1a1a1a;
  border-color: #333;
  color: #4a90e2;
}
body.dark-mode .calendar-cell {
  background-color: #1e1e1e;
  border-color: #333;
}
body.dark-mode .calendar-header {
  background-color: #0d6efd;
  color: #fff;
  border-color: #0056b3;
}
body.dark-mode .mini-tooltip {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border-color: #444;
}

/* Results - Result cards dark mode */
body.dark-mode .bg-light {
  background-color: #1e1e1e !important;
  color: #e0e0e0;
}
body.dark-mode .shadow-sm {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Ranking - Table dark mode */
body.dark-mode #ranking-table {
  background-color: #1e1e1e;
  color: #e0e0e0;
}
body.dark-mode #ranking-table thead {
  background-color: #0d6efd;
  color: #fff;
}
body.dark-mode #ranking-table th,
body.dark-mode #ranking-table td {
  border-color: #333;
}
body.dark-mode #ranking-body tr:nth-child(odd) {
  background-color: #1a1a1a !important;
}
body.dark-mode #ranking-body tr:nth-child(even) {
  background-color: #1e1e1e !important;
}
body.dark-mode #ranking-body tr:hover {
  background-color: #252525 !important;
}
body.dark-mode .table-light {
  background-color: #252525 !important;
  color: #fff;
}

/* Ranking - Top 3 cards dark mode */
body.dark-mode .border-warning,
body.dark-mode .border-secondary,
body.dark-mode .border-info {
  border-color: #444 !important;
}

/* Documents - Material cards dark mode */
body.dark-mode .material-card {
  background-color: #1e1e1e;
  border-color: #333;
}
body.dark-mode .material-card:hover {
  background-color: #252525;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
body.dark-mode .material-card .position-absolute {
  background-color: #2c2c2c !important;
  border-color: #444;
  color: #e0e0e0;
}

/* Support - Accordion dark mode */
body.dark-mode .accordion-item {
  background-color: #1e1e1e;
  border-color: #333;
}
body.dark-mode .accordion-button {
  background-color: #252525;
  color: #e0e0e0;
}
body.dark-mode .accordion-button:not(.collapsed) {
  background-color: #2c2c2c;
  color: #fff;
}
body.dark-mode .accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
body.dark-mode .accordion-body {
  background-color: #1a1a1a !important;
  color: #e0e0e0;
}

/* Badge dark mode */
body.dark-mode .badge {
  color: #fff;
}

/* Alert dark mode */
body.dark-mode .alert-info {
  background-color: #1a237e;
  border-color: #283593;
  color: #e0e0e0;
}
body.dark-mode .alert-warning {
  background-color: #664d03;
  border-color: #856404;
  color: #fff;
}
body.dark-mode .alert-success {
  background-color: #0f5132;
  border-color: #146c43;
  color: #fff;
}

/* Text colors dark mode */
body.dark-mode .text-muted {
  color: #aaa !important;
}
body.dark-mode .text-primary {
  color: #66b2ff !important;
}
body.dark-mode .text-success {
  color: #4ade80 !important;
}
body.dark-mode .text-danger {
  color: #f87171 !important;
}
body.dark-mode .text-warning {
  color: #fbbf24 !important;
}

/* Links dark mode */
body.dark-mode a {
  color: #66b2ff;
}
body.dark-mode a:hover {
  color: #99ccff;
}

/* Input group dark mode */
body.dark-mode .input-group-text {
  background-color: #2c2c2c;
  border-color: #444;
  color: #e0e0e0;
}

/* Pagination dark mode */
body.dark-mode .btn:disabled {
  background-color: #2c2c2c;
  border-color: #444;
  color: #666;
  opacity: 0.5;
}

/* Loading spinner dark mode */
body.dark-mode .spinner-border {
  border-color: rgba(255, 255, 255, 0.2);
  border-right-color: #0d6efd;
}

/* Button dark mode improvements */
body.dark-mode .btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}
body.dark-mode .btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}
body.dark-mode .btn-success {
  background-color: #198754;
  border-color: #198754;
  color: #fff;
}
body.dark-mode .btn-success:hover {
  background-color: #157347;
  border-color: #146c43;
}
body.dark-mode .btn-warning {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}
body.dark-mode .btn-warning:hover {
  background-color: #ffca2c;
  border-color: #ffc720;
}
body.dark-mode .btn-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff;
}
body.dark-mode .btn-danger:hover {
  background-color: #bb2d3b;
  border-color: #b02a37;
}
body.dark-mode .btn-light {
  background-color: #2c2c2c;
  border-color: #444;
  color: #e0e0e0;
}
body.dark-mode .btn-light:hover {
  background-color: #333;
  border-color: #555;
  color: #fff;
}

/* Mark/highlight dark mode */
body.dark-mode mark {
  background-color: #ffc107;
  color: #000;
}

/* HR divider dark mode */
body.dark-mode hr {
  border-color: #333;
  opacity: 0.5;
}

/* List dark mode */
body.dark-mode ul,
body.dark-mode ol {
  color: #e0e0e0;
}

/* Code/pre dark mode */
body.dark-mode code,
body.dark-mode pre {
  background-color: #1a1a1a;
  color: #e0e0e0;
  border-color: #333;
}

/* Select dropdown dark mode improvements */
body.dark-mode select option {
  background-color: #2c2c2c;
  color: #e0e0e0;
}

/* Scrollbar dark mode (WebKit) */
body.dark-mode ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
body.dark-mode ::-webkit-scrollbar-track {
  background: #1a1a1a;
}
body.dark-mode ::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 5px;
}
body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Scrollbar dark mode (Firefox) */
body.dark-mode {
  scrollbar-color: #444 #1a1a1a;
  scrollbar-width: thin;
}