/* static/css/main.css */
.library-badge {
    font-size: 0.8em;
    padding: 0.3em 0.6em;
    border-radius: 0.25rem;
}

.js-badge {
    background-color: #f0ad4e; /* Bootstrap warning */
    color: #fff;
}

.css-badge {
    background-color: #5bc0de; /* Bootstrap info */
    color: #fff;
}

.scan-detail-table th {
    background-color: #f8f9fa; /* Light gray background */
}

.scan-actions .btn {
    min-width: 120px;
}

.btn-review-pending .badge {
    font-size: 0.6em;
    vertical-align: top;
}

/* Custom styles for active nav link */
.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    background-color: #0d6efd; /* Bootstrap primary blue */
    color: #fff !important; /* White text */
    border-radius: 0.375rem; /* Rounded corners */
    font-weight: 600; /* Bolder font */
}

/* Adjust padding for a better look */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none; /* Oculto por defecto */
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex; /* Visible cuando tiene clase 'active' */
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
}