/* Risk level badges and styling */
.risk-high {
    background-color: #dc3545 !important;
    color: white !important;
}

.risk-medium {
    background-color: #fd7e14 !important;
    color: white !important;
}

.risk-low {
    background-color: #198754 !important;
    color: white !important;
}

.risk-none {
    background-color: #6c757d !important;
    color: white !important;
}

.risk-unknown {
    background-color: #6f42c1 !important;
    color: white !important;
}

/* Sidebar styling */
.sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}

/* Custom styling for dependency tables */
.table th {
    border-top: none;
    font-weight: 600;
}

.dependency-row:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* File upload area styling */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Progress bar animations */
.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

/* Card styling */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Button styling */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.btn-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Code styling */
code {
    font-size: 0.875em;
    color: var(--bs-code-color);
    background-color: var(--bs-code-bg);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Responsive table improvements */
.table-responsive {
    border-radius: 0.375rem;
}

/* Loading states */
.btn:disabled {
    cursor: not-allowed;
}

/* AdSense responsive styling */
.adsbygoogle {
    display: block;
    margin: 1rem 0;
}

/* Custom checkbox styling for better visibility */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Collapse button styling */
.btn-link {
    text-decoration: none;
    color: inherit;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Risk level specific background colors for rows */
tr[data-risk="HIGH"] {
    border-left: 3px solid #dc3545;
}

tr[data-risk="MEDIUM"] {
    border-left: 3px solid #fd7e14;
}

tr[data-risk="LOW"] {
    border-left: 3px solid #198754;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .btn-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-group {
        margin-bottom: 0.5rem;
    }
}

/* Print styles */
@media print {
    .sidebar,
    .btn-toolbar,
    .adsbygoogle {
        display: none !important;
    }
    
    .col-md-9 {
        width: 100% !important;
        max-width: 100% !important;
    }
}
