/* Dark mode overrides for the legacy NiceAdmin/Bootstrap OTCommittee UI. */

body.theme-dark {
    background: #111827;
    color: #d1d5db;
}

body.theme-dark #container,
body.theme-dark #main-content,
body.theme-dark .wrapper,
body.theme-dark .container {
    background: #111827;
    color: #d1d5db;
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6,
body.theme-dark label,
body.theme-dark .page-header {
    color: #f3f4f6;
}

body.theme-dark a {
    color: #93c5fd;
}

body.theme-dark a:hover,
body.theme-dark a:focus {
    color: #bfdbfe;
}

body.theme-dark .text-dark {
    color: #e5e7eb !important;
}

body.theme-dark .text-muted,
body.theme-dark .help-block,
body.theme-dark .form-text {
    color: #9ca3af !important;
}

body.theme-dark .breadcrumb,
body.theme-dark .card,
body.theme-dark .panel,
body.theme-dark .panel-body,
body.theme-dark .panel-footer,
body.theme-dark .content-panel,
body.theme-dark .well,
body.theme-dark .list-group-item,
body.theme-dark .tab-content {
    background-color: #1f2937;
    border-color: #374151;
    color: #d1d5db;
}

body.theme-dark .breadcrumb > .active,
body.theme-dark .breadcrumb li,
body.theme-dark .breadcrumb a {
    color: #d1d5db;
}

body.theme-dark .table {
    color: #d1d5db;
    background-color: #1f2937;
}

body.theme-dark .table th,
body.theme-dark .table td {
    border-color: #374151;
}

body.theme-dark .table-striped tbody tr:nth-of-type(odd),
body.theme-dark .table-hover tbody tr:hover,
body.theme-dark .personal-task.table-hover > tbody > tr:hover > td,
body.theme-dark .table-hover > tbody > tr:hover > th {
    background-color: #263244;
    color: #f3f4f6;
}

body.theme-dark .thead-dark th,
body.theme-dark table tr th {
    background-color: #111827;
    border-color: #374151;
    color: #f9fafb;
}

body.theme-dark .form-control,
body.theme-dark select,
body.theme-dark textarea,
body.theme-dark input[type="text"],
body.theme-dark input[type="email"],
body.theme-dark input[type="password"],
body.theme-dark input[type="number"],
body.theme-dark input[type="date"],
body.theme-dark input[type="datetime-local"] {
    background-color: #111827;
    border-color: #4b5563;
    color: #f3f4f6;
}

body.theme-dark .form-control:focus,
body.theme-dark select:focus,
body.theme-dark textarea:focus,
body.theme-dark input:focus {
    background-color: #111827;
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.25);
    color: #f9fafb;
}

body.theme-dark .form-control::placeholder,
body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
    color: #9ca3af;
}

body.theme-dark .dropdown-menu,
body.theme-dark .dropdown-menu.extended,
body.theme-dark .dropdown-menu.extended.logout {
    background-color: #1f2937;
    border-color: #374151 !important;
    color: #d1d5db;
}

body.theme-dark .dropdown-menu > li > a,
body.theme-dark .dropdown-menu.extended li a,
body.theme-dark .dropdown-menu.extended.logout > li > a {
    background-color: #1f2937 !important;
    border-bottom-color: #374151 !important;
    color: #d1d5db;
}

body.theme-dark .dropdown-menu > li > a:hover,
body.theme-dark .dropdown-menu > li > a:focus,
body.theme-dark .dropdown-menu.extended li a:hover,
body.theme-dark .dropdown-menu.extended.logout > li > a:hover {
    background-color: #374151 !important;
    color: #f9fafb;
}

body.theme-dark .dropdown-menu.extended.logout > li:last-child,
body.theme-dark .dropdown-menu.extended.logout > li:last-child > a,
body.theme-dark .dropdown-menu.extended.logout > li:last-child > a:hover {
    background-color: #4b6f64 !important;
    color: #ffffff;
}

body.theme-dark .modal-content,
body.theme-dark .modal-header,
body.theme-dark .modal-body,
body.theme-dark .modal-footer {
    background-color: #1f2937;
    border-color: #374151;
    color: #d1d5db;
}

body.theme-dark .modal-header .close,
body.theme-dark button.close {
    color: #f9fafb;
    opacity: 0.85;
    text-shadow: none;
}

body.theme-dark .nav-tabs {
    border-bottom-color: #374151;
}

body.theme-dark .nav-tabs .nav-link,
body.theme-dark .nav-tabs > li > a {
    background-color: #111827;
    border-color: #374151;
    color: #d1d5db;
}

body.theme-dark .nav-tabs .nav-link.active,
body.theme-dark .nav-tabs > li.active > a,
body.theme-dark .nav-tabs > li > a:hover,
body.theme-dark .nav-tabs > li.active > a:hover,
body.theme-dark .nav-tabs > li.active > a:focus {
    background-color: #1f2937;
    border-color: #4b5563;
    color: #f9fafb;
}

body.theme-dark .alert-success {
    background-color: #064e3b;
    border-color: #047857;
    color: #d1fae5;
}

body.theme-dark .alert-danger,
body.theme-dark .errorlist {
    background-color: #7f1d1d;
    border-color: #b91c1c;
    color: #fee2e2;
}

body.theme-dark .alert-warning {
    background-color: #78350f;
    border-color: #b45309;
    color: #fef3c7;
}

body.theme-dark .btn-outline-secondary {
    border-color: #9ca3af;
    color: #e5e7eb;
}

body.theme-dark .btn-outline-secondary:hover,
body.theme-dark .btn-outline-secondary:focus {
    background-color: #374151;
    border-color: #d1d5db;
    color: #ffffff;
}

body.theme-dark .dataTables_wrapper,
body.theme-dark .dataTables_wrapper .dataTables_length,
body.theme-dark .dataTables_wrapper .dataTables_filter,
body.theme-dark .dataTables_wrapper .dataTables_info,
body.theme-dark .dataTables_wrapper .dataTables_processing,
body.theme-dark .dataTables_wrapper .dataTables_paginate {
    color: #d1d5db !important;
}

body.theme-dark .page-link,
body.theme-dark .pagination > li > a,
body.theme-dark .pagination > li > span {
    background-color: #1f2937;
    border-color: #374151;
    color: #93c5fd;
}

body.theme-dark .page-item.active .page-link,
body.theme-dark .pagination > .active > a,
body.theme-dark .pagination > .active > span {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

body.theme-dark .fc,
body.theme-dark .fc-unthemed td,
body.theme-dark .fc-unthemed th,
body.theme-dark .fc-unthemed thead,
body.theme-dark .fc-unthemed tbody,
body.theme-dark .fc-unthemed .fc-divider,
body.theme-dark .fc-unthemed .fc-row,
body.theme-dark .fc-unthemed .fc-content,
body.theme-dark .fc-unthemed .fc-popover,
body.theme-dark .fc-unthemed .fc-list-view,
body.theme-dark .fc-unthemed .fc-list-heading td {
    background-color: #1f2937;
    border-color: #374151;
    color: #d1d5db;
}

body.theme-dark .fc-event,
body.theme-dark .fc-event-dot {
    background-color: #2563eb;
    border-color: #60a5fa;
    color: #ffffff;
}

body.theme-dark .ui-widget-content,
body.theme-dark .ui-datepicker,
body.theme-dark .pika-single {
    background-color: #1f2937;
    border-color: #374151;
    color: #d1d5db;
}

body.theme-dark .ui-state-default,
body.theme-dark .pika-button {
    background-color: #111827;
    color: #d1d5db;
}

body.theme-dark .otc-graph-card {
    background-color: #fff;
    border-color: #ddd;
    color: #2e2e2e;
}

body.theme-dark .otc-graph-card h3 {
    color: #2e2e2e;
}

body.theme-dark .otc-graph-axis .domain,
body.theme-dark .otc-graph-axis .tick line {
    stroke: #000;
}

body.theme-dark .otc-graph-axis .tick text {
    fill: #000;
}

body.theme-dark *:focus {
    outline-color: #60a5fa;
}
