/* Make the .btn-success color brighter and more readable */
.btn-success {
    background-color: #28a745 !important; /* a stronger green */
    border-color: #28a745 !important;
    color: #fff !important;
}

.btn-success:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}
/* Target both combinations */
.badge.bg-success,
.bg-success {
    background-color: #218838 !important;
    color: #fff !important;
}

.badge.bg-success:hover,
.bg-success:hover {
    background-color: #1e7e34 !important; /* slightly darker on hover */
}

/* styling for incidents page for the icons shown upon hovering over the incident type on the incident index page*/
.incident-hover-group {
    position: relative;
}

.incident-hover-actions {
    position: absolute;
    top: 50%;
    right: 5px;
    padding: 6px;
    opacity: 0;
    transform: translateY(-50%) scale(.8);
    transition: all .15s ease-in-out;
    transform-origin: right;
    background: var(--bs-card-bg);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 8px 24px #0910221f;
}

.incident-hover-group:hover .incident-hover-actions {
    display: inline-flex;
    opacity: 1;
    pointer-events: auto;
}

.text-bg-success {
    background-color: #28a745 !important;
}
/* Global search dropdown adjustments */
#global-search-form {
    position: relative;
    z-index: 1031; /* keep search box above dropdown */
}
#global-search-form .search-results {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    display: none; /* hidden by default */
    max-height: 60vh;
    overflow-y: auto;
    z-index: 1030;
}
#global-search-form .search-results.show {
    display: block;
}
#global-search-form .search-results .dropdown-header {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    background-color: rgba(0,0,0,0.05);
}
