/* Custom styles for the Vulnerability Dashboard */

/* General styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

/* Canvas container for charts */
.canvas-container {
    position: relative;
    height: 250px;
    width: 100%;
}

/* Card hover effects */
.card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Severity badge styling */
.badge {
    font-size: 0.85rem;
    padding: 0.35em 0.65em;
}

/* Accordion styling for vulnerability items */
.accordion-button:not(.collapsed) {
    background-color: rgba(var(--bs-secondary-rgb), 0.1);
    color: var(--bs-light);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(var(--bs-primary-rgb), 0.25);
}

/* Proof of concept container */
.poc-container {
    max-height: 400px;
    overflow-y: auto;
}

pre code {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Styling for code blocks */
code {
    background-color: var(--bs-dark);
    color: var(--bs-light);
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
}

/* Host row hover effect */
.host-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.host-row:hover {
    background-color: rgba(var(--bs-dark-rgb), 0.075);
}

/* Breadcrumb styling */
.breadcrumb {
    background-color: var(--bs-dark);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

.breadcrumb-item.active {
    color: var(--bs-light);
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* Search input styling */
#searchInput {
    min-width: 250px;
}

/* Filter buttons spacing */
.vulnerability-filter .btn-group {
    flex-wrap: wrap;
}

.vulnerability-filter .btn {
    margin-bottom: 5px;
}

/* Stats container */
.stats-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Make sure tables are responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
