.custom-scrollbar {
    position: relative;
    height: 500px;
    overflow: auto;
    scrollbar-color: #a1daf8 #e7f6fd;
}

.actions-scrollbar {
    position: relative;
    max-height: 300px;
    overflow: auto;
    margin-top: 15px;
    scrollbar-color: #a1daf8 #e7f6fd;
}

.div-wrapper-scrollbar {
    display: block;
}

.menuSelected {
    color: #0089d2 !important;
    font-weight: bold !important;
}

.navbar-brand {
    color: #005b90 !important;
}

h1, h2, h3 {
    color: #005b90;
}

h4 {
    color: #777777;
}

form > h4, div > h4 {
    color: #005b90 !important;
}

li > a:hover {
    color: #005b90 !important;
}

.btn-darkBlue {
    color: #ffffff;
    background-color: #005b90;
    border-color: #00304d;
}

.btn-darkBlue.active, .btn-darkBlue:hover {
    background-color: #0089d2;
}

.btn-blue {
    color: #ffffff;
    background-color: #0089d2;
    border-color: #005b90;
}
.btn-blue.active, .btn-blue:hover {
    background-color: #00a6ff;
}

.btn-lightBlue {
    color: #ffffff;
    background-color: #a1daf8;
    border-color: #0089d2;
}

.btn-delete {
    color: #ffffff;
    background-color: #cc0000;
}

.btn-darkBlue.focus, .btn-blue.focus, .btn-lightBlue.focus {
    color: #ffffff;
}

.btn-panel {
    background-color: #d9edf7;
}

th, td {
    vertical-align: middle !important;
}

.thead-dark {
    color: #005b90 !important;
}

.table-header th {
   border-bottom: 2px solid #005b90 !important;
   color: #005b90;
}

.table-header-right th {
   border-right: 2px solid #005b90 !important;
   color: #005b90;
}

.table-cell-divisor-right {
    border-right: 1px solid #ddd;
}

.table {
    margin-bottom: 0px !important;
}

a.disable {
  pointer-events: none;
  cursor: default;
}

.bar {
    background: #005b90;
    margin-top: 5px;
}

.loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #0089d2;
  width: 120px;
  height: 120px;
  animation: spin 1s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.opaque {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: black;
    filter: alpha(opacity=30);
    opacity: 0.3;
}

* html .opaque {
    position: absolute;
}

div.disabled {
  pointer-events: none;
  opacity: 0.3;
  background: #FFFFFF;
}

.nopadding {
    padding: 0 !important;
}

label {
    font-weight: normal;
}

/* General dark mode settings */
.dark-theme {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

/* Navbar */
.dark-theme .navbar {
    background-color: #1e1e1e;
    border-color: #333;
}

.dark-theme .navbar a,
.dark-theme .navbar-brand,
.dark-theme .navbar-nav > li > a {
    color: #ffffff !important;
}

/* Alerts */
.dark-theme .alert {
    background-color: #333;
    color: #ffffff;
    border-color: #444;
}

/* Tables */
.dark-theme .table {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
}

.dark-theme .table th,
.dark-theme .table td {
    border-color: #333 !important;
    color: #ffffff !important;
}

.dark-theme .table-striped tbody tr:nth-of-type(odd) {
    background-color: #252525 !important;
}

.dark-theme .table-striped tbody tr:nth-of-type(even) {
    background-color: #1e1e1e !important;
}

.dark-theme .table-hover tbody tr:hover {
    background-color: #333 !important;
}

.dark-theme .btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-danger {
    margin: 0 !important;
}

/* Cards */
.dark-theme .card {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

/* Headings (fix blue text in dark mode) */
.dark-theme h1,
.dark-theme h2,
.dark-theme h3,
.dark-theme h4,
.dark-theme h5,
.dark-theme h6 {
    color: #ffffff !important;
}

/* Links */
.dark-theme a {
    color: #e0e0e0 !important;
}

.dark-theme a:hover {
    color: #cccccc !important;
}

/* Panels */
.dark-theme .panel-info {
    background-color: #2a2a2a !important;
    border-color: #444 !important;
    color: #e0e0e0 !important;
}

.dark-theme .panel-info .panel-heading {
    background-color: #333 !important;
    color: #ffffff !important;
    border-bottom: 1px solid #444 !important;
}

.dark-theme .panel-info .panel-body {
    background-color: #2a2a2a !important;
    color: #cccccc !important;
}


/* Log content */
.dark-theme .log-content {
    background-color: #000 !important;
    color: #e0e0e0 !important;
}

/* Custom scrollbar for Chrome, Edge, Safari */
.dark-theme .log-content::-webkit-scrollbar,
.dark-theme .actions-scrollbar::-webkit-scrollbar,
.dark-theme .div-wrapper-scrollbar::-webkit-scrollbar {
    background-color: #1e1e1e;
}

.dark-theme .log-content::-webkit-scrollbar-thumb,
.dark-theme .actions-scrollbar::-webkit-scrollbar-thumb,
.dark-theme .div-wrapper-scrollbar::-webkit-scrollbar-thumb {
    background-color: #444;
}

.dark-theme .log-content::-webkit-scrollbar-thumb:hover,
.dark-theme .actions-scrollbar::-webkit-scrollbar-thumb:hover,
.dark-theme .div-wrapper-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #666;
}

/* Custom scrollbar for Firefox */
.dark-theme .actions-scrollbar,
.dark-theme .div-wrapper-scrollbar {
    scrollbar-color: #444 #1e1e1e;
}

/* Fix for borders with bright blue color */
.dark-theme div[style*="border: 2px solid #a1daf8"] {
    border: 2px solid #444 !important;
}

html:not(.js-enabled) {
    visibility: hidden;
}

.dark-theme a:hover,
.dark-theme li > a:hover {
    color: #bbbbbb !important;
}

.definition-box {
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: monospace;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    color: #333;
}
