/* Dark theme overrides, loaded globally or via application.css if you want it always available */
body.dark-theme {
  background-color: #181a1b !important;
  color: #e0e0e0 !important;
  --pc-sidebar-shadow: 1px 0 0 0px rgb(24 26 27);
  --pc-header-shadow: 0 1px 0 0px rgb(24 26 27);
}

body.dark-theme,
body.dark-theme h1:not([class*="text-"]),
body.dark-theme h2:not([class*="text-"]),
body.dark-theme h3:not([class*="text-"]),
body.dark-theme h4:not([class*="text-"]),
body.dark-theme h5:not([class*="text-"]),
body.dark-theme h6:not([class*="text-"]),
body.dark-theme .text-body,
body.dark-theme .text,
body.dark-theme .dropdown-menu,
body.dark-theme .modal-content,
body.dark-theme .list-group-item,
body.dark-theme .form-control,
body.dark-theme .form-select,
body.dark-theme .dropdown-item,
body.dark-theme .table,
body.dark-theme .table th,
body.dark-theme .table td,
body.dark-theme .form-check-label,
body.dark-theme .form-label,
body.dark-theme .fw-semibold,
body.dark-theme .text-secondary:not(.consultant-avatar),
body.dark-theme label,
body.dark-theme a:not([class*="text-"]),
body.dark-theme a:not([class*="text-"]):link,
body.dark-theme a:not([class*="text-"]):visited,
body.dark-theme .link-primary,
body.dark-theme .btn-link {
  color: #e0e0e0 !important;
}

body.dark-theme .pc-header i:not([class*="text-"]):not([class*="ti-power"]) {
  color: #e0e0e0 !important;
}


body.dark-theme .nav-link {
  color: #7a8086 !important;
}


body.dark-theme .btn-muted {
  color: #e0e0e0 !important;
}

body.dark-theme .pc-header .pc-head-link.active::before,
body.dark-theme .pc-header .pc-head-link:active::before,
body.dark-theme .pc-header .pc-head-link:focus::before,
body.dark-theme .pc-header .pc-head-link:hover::before {
  border-radius: 0 !important;
  transform: scale(0) !important;
}

body.dark-theme a:not([class*="text-"]),
body.dark-theme a:link:not([class*="text-"]),
body.dark-theme a:visited:not([class*="text-"]),
body.dark-theme .link-primary,
body.dark-theme .btn-link:not([class*="text-"]) {
  color: #e0e0e0 !important;
}

body.dark-theme .pc-sidebar a:hover:not([class*="text-"]):not([class*="b-brand"]),
body.dark-theme .pc-sidebar a:focus,
body.dark-theme .pc-sidebar .link-primary:hover,
body.dark-theme .pc-sidebar .btn-link:hover,
body.dark-theme .pc-header div a.dropdown-item:hover,
body.dark-theme .pc-header div a.dropdown-item:focus,
body.dark-theme .pc-header .link-primary:hover,
body.dark-theme .pc-header .btn-link:hover,
body.dark-theme .pc-head-link:hover,
body.dark-theme .tab-content div.dropdown-item:hover{
  color: #fff !important;
  background-color: #343a40 !important;
  text-decoration: none !important;
}

body.dark-theme .simplebar-content a:hover{
  color: #fff !important;
  background-color: #343a40 !important;
  text-decoration: none !important;
}

body.dark-theme .card,
body.dark-theme .dropdown-menu,
body.dark-theme .modal-content,
body.dark-theme .list-group-item,
body.dark-theme .form-control,
body.dark-theme .form-select {
  background-color: #23272b !important;
  color: #e0e0e0 !important;
  border-color: #181a1b !important;
}

body.dark-theme .navbar,
body.dark-theme .pc-header,
body.dark-theme .dropdown-menu,
body.dark-theme .dropdown-user-profile,
body.dark-theme .dropdown-notification {
  background-color: #23272b !important;
  color: #e0e0e0 !important;
}

body.dark-theme .btn-primary,
body.dark-theme .btn-outline-primary {
  background-color: #375a7f !important;
  border-color: #375a7f !important;
  color: #fff !important;
}

body.dark-theme .btn-outline-primary {
  background-color: transparent !important;
  color: #375a7f !important; /* Use primary color */
}

body.dark-theme .btn-outline-primary:hover,
body.dark-theme .btn-outline-primary:focus {
  border-color: #2c4663 !important;
  background-color: #2c4663 !important;
  color: #fff !important;
}

body.dark-theme .btn-primary:hover,
body.dark-theme .btn-primary:focus {
  color: #fff !important;
    background-color: #2c4663 !important;
  border-color: #2c4663 !important;
}


body.dark-theme .list-group-item {
  border-color: #343a40 !important;
}

body.dark-theme .dropdown-item {
  color: #e0e0e0 !important;
}

body.dark-theme .dropdown-item.active,
body.dark-theme .dropdown-item:active {
  background-color: #375a7f !important;
  color: #fff !important;
}

body.dark-theme .modal {
  --bs-modal-header-border-color: #181a1b;
  --bs-modal-footer-border-color: #181a1b;
}

body.dark-theme .table {
  color: #e0e0e0 !important;
}

body.dark-theme .table th,
body.dark-theme .table td {
  border-color: #343a40 !important;
}

body.dark-theme .table-light,
body.dark-theme .table-light > th,
body.dark-theme .table-light > td {
  --bs-table-color: #e0e0e0;
  --bs-table-bg: #23272b;
  --bs-table-border-color: #181a1b;
  --bs-table-striped-bg: #262a2e;
  --bs-table-striped-color: #e0e0e0;
  --bs-table-active-bg: #181a1b;
  --bs-table-active-color: #e0e0e0;
  --bs-table-hover-bg: #23272b;
  --bs-table-hover-color: #fff;
  background-color: #23272b !important;
  color: #e0e0e0 !important;
  border-color: #343a40 !important;
}

body.dark-theme table.table-light, body.dark-theme table tr.bg-light-subtle {
  background-color: #23272b !important;
  color: #e0e0e0 !important;
  border-color: #181a1b !important;
}

body.dark-theme table.table-light, 
body.dark-theme table tr td span:not([class*="badge"]).text-dark {
  background-color: #23272b !important;
  color: #b1b1b1 !important;
  border-color: #343a40 !important;
}

/* Do NOT override .bg-danger-subtle and .bg-light backgrounds for table cells in dark theme */
/*
body.dark-theme .bg-light,
body.dark-theme .bg-white {
  background-color: #23272b !important;
}
*/

body.dark-theme .text-muted {
  color: #b1b1b1 !important;
}

/* Keep badge and label text color override for subtle backgrounds */
body.dark-theme .badge.bg-danger-subtle,
body.dark-theme .badge.bg-warning-subtle,
body.dark-theme .badge.bg-info-subtle,
body.dark-theme .badge.bg-success-subtle,
body.dark-theme .badge.bg-primary-subtle,
body.dark-theme .badge.bg-secondary-subtle,
body.dark-theme .badge.bg-light-subtle {
  color: #4f5255 !important;
}

body.dark-theme .border-0 {
  border-color: #343a40 !important;
}

body.dark-theme .form-check-input:checked {
  background-color: #375a7f !important;
  border-color: #375a7f !important;
}

body.dark-theme button:not([class*="btn-outline-"]) i:not([class*="text-"]),
body.dark-theme button:not([class*="btn-outline-"]) .bi:not([class*="text-"]),
body.dark-theme button:not([class*="btn-outline-"]) .ti:not([class*="text-"]) {
  color: #fff !important;
}

body.dark-theme .dropdown-menu a,
body.dark-theme .dropdown-menu .dropdown-item,
body.dark-theme .dropdown-user-profile a,
body.dark-theme .dropdown-user-profile .dropdown-item,
body.dark-theme .dropdown-notification a,
body.dark-theme .dropdown-notification .dropdown-item {
  color: #e0e0e0 !important;
}

body.dark-theme .nav-link.active,
body.dark-theme .nav-link:active {
  background-color: #343a40 !important;
  color: #fff !important;
}

body.dark-theme .pc-head-link.dropdown-toggle:hover,
body.dark-theme .pc-head-link.dropdown-toggle:focus,
body.dark-theme .pc-head-link:hover,
body.dark-theme .pc-head-link:focus {
  background-color: #181a1b !important;
  color: #fff !important;
}

body.dark-theme .pc-sidebar,
body.dark-theme .pc-over-menu-active {
  background-color: #23272b !important;
  color: #e0e0e0 !important;
}

body.dark-theme .input-group-text {
  background-color: #23272b !important;
  color: #e0e0e0 !important;
  border-color: #181a1b !important;
}

body.dark-theme .pc-header,
body.dark-theme .pc-sidebar {
  border-color: #181a1b !important;
  /* If you want a border, ensure border-style/width is set in your base CSS */
}

body.dark-theme .allocation-row,
body.dark-theme .project-row {
  border-bottom: 1px solid #181a1d !important;
}

body.dark-theme tr th:not([class*="weekend-day"]):not([class*="national-holiday"]):not([class*="weekend-trace-marker"]):not([class*="after-project"]):not([class*="before-project"]) {
  background-color: #202225 !important;
}

body.dark-theme .allocation-row td:not([class*="weekend-day"]):not([class*="national-holiday"]):not([class*="weekend-trace-marker"]):not([class*="after-project"]):not([class*="before-project"]),
body.dark-theme .project-row td:not([class*="weekend-day"]):not([class*="national-holiday"]):not([class*="weekend-trace-marker"]):not([class*="after-project"]):not([class*="before-project"]){
  background-color: #23272b !important;
}

body.dark-theme .modal input:not([type="submit"]), 
body.dark-theme .modal textarea,
body.dark-theme .modal select {
  border-color: #727272 !important;
}
 
body.dark-theme .national-holiday,
body.dark-theme .weekend-row,
body.dark-theme .weekend-day, 
body.dark-theme .weekend-trace-marker,
body.dark-theme .before-project,
body.dark-theme .after-project {
  background-color: #181a1d !important;
}

body.dark-theme tr.table-warning.profile-row-collapsible.bg-light-subtle {
  background-color: #3a2f1a !important; /* dark amber/brown */
  color: #c7a94a !important; /* darker yellow for better contrast */
}

body.dark-theme tr.table-warning.profile-row-collapsible.bg-light-subtle a {
  color: #c7a94a !important;
}

body.dark-theme tr.table-warning.profile-row-collapsible.bg-light-subtle .badge.bg-warning.text-dark {
  background-color: #ffe082 !important;
  color: #3a2f1a !important;
}

body.dark-theme tr.table-warning.profile-row-collapsible.bg-light-subtle td {
  color: #3a2f1a !important;
}

body.dark-theme tr.table-warning.profile-row-collapsible.bg-light-subtle .text-muted {
  color: #888888 !important;
}

body.dark-theme tr.table-danger.profile-row-collapsible.bg-light-subtle {
  background-color: #3a1a1a !important; /* dark red/brown */
  color: #e57373 !important; /* softer red for text */
}

body.dark-theme tr.table-danger.profile-row-collapsible.bg-light-subtle a {
  color: #e57373 !important;
}

body.dark-theme tr.table-danger.profile-row-collapsible.bg-light-subtle .badge.bg-danger.text-dark {
  background-color: #e57373 !important;
  color: #3a1a1a !important;
}

body.dark-theme tr.table-danger.profile-row-collapsible.bg-light-subtle td {
  color: #3a1a1a !important;
}

body.dark-theme tr.table-danger.profile-row-collapsible.bg-light-subtle .text-muted {
  color: #888888 !important;
}

body.dark-theme table.table-light, body.dark-theme table tr.bg-light-subtle {
  background-color: #23272b !important;
  color: #e0e0e0 !important;
  border-color: #b1b1b1 !important;
}


body.dark-theme table.table-light, body.dark-theme table tr td span:not([class*="badge"]).text-dark {
  background-color: #23272b !important;
  color: #b1b1b1 !important;
  border-color: #343a40 !important;
}

.table-bordered > :not(caption) > * > * {
    border-width: 1px 1px;
}

body.dark-theme .project-timeline, body.dark-theme .projects-timeline {
  background-color: #23272b !important;
}

body.dark-theme .badge.bg-danger-subtle,
body.dark-theme .badge.bg-warning-subtle,
body.dark-theme .badge.bg-info-subtle,
body.dark-theme .badge.bg-success-subtle,
body.dark-theme .badge.bg-primary-subtle,
body.dark-theme .badge.bg-secondary-subtle,
body.dark-theme .badge.bg-light-subtle {
  color: #4f5255 !important;
}

/* Do NOT override bg-danger-subtle, bg-success-subtle, bg-warning-subtle backgrounds for timesheet cells in allocation-rows */
body.dark-theme #allocation-rows td.timesheet-cell.bg-danger-subtle {
  background-color: var(--bs-danger-bg-subtle) !important;
  border-color: #e0e0e0 !important;
  opacity: 1 !important; /* Optional: make it slightly transparent */
}
body.dark-theme #allocation-rows td.timesheet-cell.bg-success-subtle {
  background-color: var(--bs-success-bg-subtle) !important;
  border-color: #e0e0e0 !important;
  opacity: 1 !important; /* Optional: make it slightly transparent */
}
body.dark-theme #allocation-rows td.timesheet-cell.bg-warning-subtle {
  background-color: var(--bs-warning-bg-subtle) !important;
  border-color: #e0e0e0 !important;
  opacity: 1 !important; /* Optional: make it slightly transparent */
}
/* Make .text-muted darker inside timesheet cells with bg-*-subtle */
body.dark-theme #allocation-rows td.timesheet-cell.bg-danger-subtle .text-muted,
body.dark-theme #allocation-rows td.timesheet-cell.bg-success-subtle .text-muted,
body.dark-theme #allocation-rows td.timesheet-cell.bg-warning-subtle .text-muted {
  color: #343a40 !important;
}

/* Add more overrides as needed for your UI */

body.dark-theme .card .card-header {
  border-bottom: 1px solid #181a1b !important;
}

/* Fix card header with bg-light in dark theme */
body.dark-theme .card-header.bg-light {
  background-color: #2d3436 !important;
  border-bottom: 1px solid #535657 !important;
}

body.dark-theme .card-header.bg-light .text-dark,
body.dark-theme .card-header.bg-light h4 {
  color: #e0e0e0 !important;
}

body.dark-theme .border {
  border-color: #535657 !important;
}

/* Make .bg-light and .bg-white look less bright in dark theme, but do NOT override table cells */
body.dark-theme .bg-light:not(td):not(th):not(.allocation-block),
body.dark-theme .bg-white:not(td):not(th) {
  background-color: #232427 !important;
  color: #d0d0d0 !important;
}

body.dark-theme .btn-close {
  filter: invert(1) grayscale(1) brightness(1.5);
  opacity: 0.9;
}

body.dark-theme .btn-close:hover,
body.dark-theme .btn-close:focus {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 1;
}

body.dark-theme .text-danger,
body.dark-theme a.text-danger,
body.dark-theme .dropdown-item.text-danger {
  color: #dc3545 !important;
}

body.dark-theme .dropdown-item.text-danger:hover,
body.dark-theme .dropdown-item.text-danger:focus {
  color: #fff !important;
  background-color: #dc3545 !important;
}

body.dark-theme .table-danger td,
body.dark-theme tr.table-danger td {
  color: #a94442 !important;
}

body.dark-theme .table-warning td,
body.dark-theme tr.table-warning td {
  color: #8a6d3b !important;
}

/* Dashboard Dark Theme Styles */

/* Week Overview Header */
body.dark-theme .week-overview-header {
  background: #2a2d30 !important;
  border-bottom: 3px solid #3a3f44 !important;
}

body.dark-theme .week-overview-title {
  color: #e0e0e0 !important;
}

body.dark-theme .week-date-range {
  color: #b1b1b1 !important;
}

body.dark-theme .week-total-hours {
  color: #6bb6ff !important;
}

body.dark-theme .week-projects-count {
  color: #b1b1b1 !important;
}

/* Today's Schedule Section */
body.dark-theme .today-schedule-section {
  background: linear-gradient(135deg, #2a2d30 0%, #343a40 100%) !important;
  border: 1px solid #3a3f44 !important;
}

body.dark-theme .today-activity-card {
  background: #23272b !important;
  border-left: 4px solid #6bb6ff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

body.dark-theme .today-activity-card:hover {
  box-shadow: 0 3px 12px rgba(107, 182, 255, 0.2) !important;
  border-left-color: #5aa3e8 !important;
}

body.dark-theme .customer-icon-placeholder {
  background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
  border: 2px solid #495057 !important;
}

body.dark-theme .customer-icon-today {
  border: 2px solid #495057 !important;
}

body.dark-theme .time-block {
  background: rgba(107, 182, 255, 0.1) !important;
  border: 1px solid rgba(107, 182, 255, 0.2) !important;
  padding: 0.5rem !important;
}

body.dark-theme .contact-info {
  font-size: 0.8rem;
}

/* Week Day Cards */
body.dark-theme .week-day-card {
  background: linear-gradient(135deg, #495057 0%, #343a40 100%) !important;
  border: 1px solid #495057 !important;
}

body.dark-theme .week-day-card.today {
  border: 2px solid #6bb6ff !important;
  background: linear-gradient(135deg, #6bb6ff 0%, #5aa3e8 100%) !important;
  box-shadow: 0 0 0 2px rgba(107, 182, 255, 0.25) !important;
}

/* Section Headers */
body.dark-theme .section-header {
  border-bottom: 1px solid #495057 !important;
}

body.dark-theme .section-header h6 {
  color: #e0e0e0 !important;
}

/* Project and Customer Cards */
body.dark-theme .project-card-mini,
body.dark-theme .customer-card-mini {
  background: #2a2d30 !important;
  border: 1px solid #495057 !important;
}

body.dark-theme .project-card-mini:hover,
body.dark-theme .customer-card-mini:hover {
  background: #343a40 !important;
  border-color: #6bb6ff !important;
}

body.dark-theme .project-icon-mini,
body.dark-theme .customer-icon-mini {
  background: #343a40 !important;
  border: 1px solid #495057 !important;
}

body.dark-theme .project-mini-name {
  color: #6bb6ff !important;
}

body.dark-theme .customer-mini-name {
  color: #b1b1b1 !important;
}

body.dark-theme .project-mini-customer,
body.dark-theme .customer-mini-location {
  color: #b1b1b1 !important;
}

/* More Projects/Customers Indicators */
body.dark-theme .more-projects-indicator,
body.dark-theme .more-customers-indicator {
  background: #2a2d30 !important;
  border: 1px dashed #495057 !important;
  color: #b1b1b1 !important;
}

body.dark-theme .more-projects-indicator:hover,
body.dark-theme .more-customers-indicator:hover {
  background: #343a40 !important;
  border-color: #6bb6ff !important;
}

body.dark-theme .more-projects-indicator a,
body.dark-theme .more-customers-indicator a {
  color: #b1b1b1 !important;
}

body.dark-theme .more-projects-indicator:hover a,
body.dark-theme .more-customers-indicator:hover a {
  color: #6bb6ff !important;
}

/* Contact Info */
body.dark-theme .contact-info .text-dark {
  color: #e0e0e0 !important;
}

body.dark-theme .contact-info a {
  color: #b1b1b1 !important;
}

body.dark-theme .contact-info a:hover {
  color: #6bb6ff !important;
}

/* Week Statistics */
body.dark-theme .border-top {
  border-color: #495057 !important;
}

/* Fix for project links in dark theme */
body.dark-theme .project-card-mini a:hover .project-mini-name,
body.dark-theme .customer-card-mini a:hover .customer-mini-name {
  color: #6bb6ff !important;
}

/* Empty week message */
body.dark-theme .bg-light:not(td):not(th):not(.allocation-block) {
  background-color: #2a2d30 !important;
}

body.dark-theme .customer-name {
  color: #e0e0e0 !important;
}

/* Alert messages for holiday/sick leave notifications */
body.dark-theme .alert-success {
  background-color: #1e3a2e !important;
  border-color: #2d5a42 !important;
  color: #a3d9a5 !important;
}

body.dark-theme .alert-success h5,
body.dark-theme .alert-success p {
  color: #a3d9a5 !important;
}

body.dark-theme .alert-info {
  background-color: #1e2a3a !important;
  border-color: #2d425a !important;
  color: #a3c4d9 !important;
}

body.dark-theme .alert-info h5,
body.dark-theme .alert-info p {
  color: #a3c4d9 !important;
}

/* Icon colors for holiday/sick messages */
body.dark-theme .alert-success i {
  color: #a3d9a5 !important;
}

body.dark-theme .alert-info i {
  color: #a3c4d9 !important;
}

/* Weekend Mode banner specific styling */
body.dark-theme .alert-info .text-dark {
  color: #a3c4d9 !important;
}

body.dark-theme .alert-info small {
  color: #a3c4d9 !important;
}

/* Week overview blocked date indicators for dark theme */
body.dark-theme .week-day-card .text-warning {
  color: #ffc107 !important;
}

body.dark-theme .week-day-card .text-info {
  color: #0dcaf0 !important;
}

body.dark-theme .week-day-card .text-primary {
  color: #0d6efd !important;
}

body.dark-theme .week-day-card .text-secondary {
  color: #6c757d !important;
}

body.dark-theme .week-day-card .text-muted {
  color: #6c757d !important;
}

/* Notification dropdown enhancements for dark theme */
body.dark-theme .pc-header .dropdown-notification {
  border: 1px solid #495057 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  background-color: #2d3436 !important;
}

body.dark-theme .pc-header .dropdown-notification .list-group-item-action:hover {
  background-color: #495057 !important;
}

body.dark-theme .pc-header .dropdown-notification .dropdown-divider {
  border-color: #495057 !important;
}

body.dark-theme .dropdown-notification .list-group-item {
  background-color: #2d3436 !important;
  border-color: #495057 !important;
}

/* Unread notification styling for dark theme */
body.dark-theme .dropdown-notification .notification-unread {
  background-color: #3a3f44 !important;
  border-left: 3px solid #0d6efd !important;
}

/* Additional alert styles for recommendations and reports */
body.dark-theme .alert-warning {
  background-color: #3a2e1e !important;
  border-color: #5a422d !important;
  color: #d9c3a3 !important;
}

body.dark-theme .alert-warning h5,
body.dark-theme .alert-warning h6,
body.dark-theme .alert-warning p,
body.dark-theme .alert-warning .alert-heading {
  color: #d9c3a3 !important;
}

body.dark-theme .alert-warning i {
  color: #d9c3a3 !important;
}

body.dark-theme .alert-danger {
  background-color: #3a1e1e !important;
  border-color: #5a2d2d !important;
  color: #d9a3a3 !important;
}

body.dark-theme .alert-danger h5,
body.dark-theme .alert-danger h6,
body.dark-theme .alert-danger p,
body.dark-theme .alert-danger .alert-heading {
  color: #d9a3a3 !important;
}

body.dark-theme .alert-danger i {
  color: #d9a3a3 !important;
}

/* Ensure all alert headings are properly styled */
body.dark-theme .alert-heading {
  font-weight: 600 !important;
}

/* Alert text content improvements */
body.dark-theme .alert h6.alert-heading {
  margin-bottom: 0.5rem !important;
}

/* Badge styling within alerts for dark theme */
body.dark-theme .alert .badge {
  color: #000 !important;
}

body.dark-theme .alert-warning .badge {
  background-color: #ffc107 !important;
  color: #000 !important;
}

body.dark-theme .alert-danger .badge {
  background-color: #dc3545 !important;
  color: #fff !important;
}

/* Score breakdown text contrast fixes */
.score-excellent {
  color: #28a745 !important; /* Green */
  font-weight: bold !important;
}

.score-good {
  color: #212529 !important; /* Dark gray/black for light backgrounds */
  font-weight: bold !important;
}

.score-fair {
  color: #fd7e14 !important; /* Orange (darker than yellow for better contrast) */
  font-weight: bold !important;
}

.score-poor {
  color: #dc3545 !important; /* Red */
  font-weight: bold !important;
}

.score-critical {
  color: #6c757d !important; /* Gray */
  font-weight: bold !important;
}

/* Dark theme overrides for score text */
body.dark-theme .score-excellent {
  color: #28a745 !important; /* Keep green */
}

body.dark-theme .score-good {
  color: #f8f9fa !important; /* Very light gray/off-white for dark backgrounds */
}

body.dark-theme .score-fair {
  color: #ffc107 !important; /* Keep amber */
}

body.dark-theme .score-poor {
  color: #dc3545 !important; /* Keep red */
}

body.dark-theme .score-critical {
  color: #adb5bd !important; /* Light gray */
}

body.dark-theme .alert-info .badge {
  background-color: #0dcaf0 !important;
  color: #000 !important;
}

body.dark-theme .alert-success .badge {
  background-color: #198754 !important;
  color: #fff !important;
}

/* Update card styles for better visibility */
body.dark-theme .card {
  background-color: #1f2225 !important;
  color: #e0e0e0 !important;
  border-color: #343a40 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
}

/* Improve text contrast */
body.dark-theme .text-dark {
  color: #f5f5f5 !important;
}

/* Enhance hover effects for interactive elements */
body.dark-theme .card:hover {
  background-color: #2a2d30 !important;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Adjust button styles */
body.dark-theme .btn-primary {
  background-color: #4a90e2 !important;
  border-color: #4a90e2 !important;
  color: #fff !important;
}

body.dark-theme .btn-primary:hover {
  background-color: #357ab8 !important;
  border-color: #357ab8 !important;
}

/* Improve table visibility */
body.dark-theme .table {
  background-color: #23272b !important;
  color: #e0e0e0 !important;
  border-color: #343a40 !important;
}

body.dark-theme .table th,
body.dark-theme .table td {
  border-color: #343a40 !important;
}

/* Update Kanban board background */
body.dark-theme .card-body {
  background-color: #1f2225 !important;
  color: #e0e0e0 !important;
}

body.dark-theme .card-header {
  background-color: #23272b !important;
  color: #e0e0e0 !important;
}

body.dark-theme .card {
  background-color: #1f2225 !important;
  border-color: #343a40 !important;
}


