/* Main Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Sidebar */
.sidebar {
    height: 100vh;
    position: sticky;
    top: 0;
    padding-top: 20px;
    padding-bottom: 20px;
}

.sidebar-header {
    padding: 10px 15px;
    border-bottom: 1px solid #444;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-img {
    max-width: 100%;
    height: 40px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1); /* Make the logo white to match the light text theme */
}

.sidebar .nav-link {
    color: #adb5bd;
    padding: 10px 15px;
    margin-bottom: 5px;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: #343a40;
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: #007bff;
    border-radius: 5px;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

/* Main Content */
.main-content {
    padding: 20px;
    min-height: 100vh;
}

.content-page {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Cards */
.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    font-weight: 600;
}

/* Tables */
.table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending {
    background-color: #ffc107;
    color: black;
}

.status-running {
    background-color: #007bff;
    color: white;
}

.status-completed {
    background-color: #28a745;
    color: white;
}

.status-failed {
    background-color: #dc3545;
    color: white;
}

/* Findings */
.finding-card {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.finding-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.finding-severity {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
}

.severity-critical {
    background-color: #dc3545;
    color: #fff;
}

.severity-high {
    background-color: #fd7e14;
    color: #fff;
}

.severity-medium {
    background-color: #ffc107;
    color: #212529;
}

.severity-low {
    background-color: #17a2b8;
    color: #fff;
}

.severity-info {
    background-color: #6c757d;
    color: #fff;
}

/* Scanner Info */
.scanner-badge {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    background-color: #e9ecef;
    color: #495057;
    margin-left: 10px;
}

/* Executive Summary */
.executive-summary {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.executive-summary h4 {
    margin-top: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Progress Bar */
.progress {
    height: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Report Container */
#report-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* SysReptor Integration Styling */
.form-check input[id*="sysreptor"] {
    accent-color: #28a745;
}

.form-check label[for*="sysreptor"] {
    font-weight: 500;
    color: #28a745;
}

.form-check label[for*="sysreptor"] i {
    margin-right: 5px;
}

.form-check small.text-muted {
    margin-left: 1.5rem;
    font-style: italic;
}

/* Delete button styling */
.delete-scan-btn {
    border: none !important;
    background-color: #dc3545 !important;
    color: white !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.delete-scan-btn:hover {
    background-color: #c82333 !important;
    transform: scale(1.1);
}

/* Action buttons spacing */
.view-results-btn, .generate-report-btn, .delete-scan-btn {
    margin-right: 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        position: static;
        margin-bottom: 20px;
    }
    
    .main-content {
        padding: 10px;
    }
}
