/* SSL Scanner specific styles */

.ssl-scan-badge {
    background-color: #198754; /* Green for SSL/TLS security */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin: 2px;
}

.ssl-finding-card {
    border-left: 4px solid #198754;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.ssl-finding-card:hover {
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

.ssl-finding-critical {
    border-left-color: #dc3545; /* Red for critical */
}

.ssl-finding-high {
    border-left-color: #dc3545; /* Red for high */
}

.ssl-finding-medium {
    border-left-color: #fd7e14; /* Orange for medium */
}

.ssl-finding-low {
    border-left-color: #ffc107; /* Yellow for low */
}

.ssl-finding-info {
    border-left-color: #0dcaf0; /* Light blue for info */
}

.ssl-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: text-bottom;
}

.ssl-scan-info {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #198754;
}

.ssl-scan-info h5 {
    color: #198754;
    margin-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.ssl-scan-info p {
    margin-bottom: 5px;
}

.ssl-progress {
    height: 10px;
}

/* Animation for active SSL scan */
.ssl-scanning {
    animation: sslPulse 2s infinite;
}

@keyframes sslPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

/* SSL specific dashboard widgets */
.ssl-dashboard-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.ssl-dashboard-card:hover {
    transform: translateY(-5px);
}

.ssl-dashboard-card .card-header {
    background-color: #198754;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 12px 15px;
}

.ssl-dashboard-card .card-body {
    padding: 20px 15px;
}

/* SSL specific options section */
#ssl-options-section {
    border: 1px solid #198754;
    border-radius: 8px;
    padding: 15px;
    background-color: #f8f9fa;
    margin-bottom: 20px;
}

#ssl-options-section .form-label {
    color: #198754;
    font-weight: 600;
}

#ssl-options-section .form-check-label {
    color: #495057;
}

#ssl-options-section .input-group-text {
    background-color: #198754;
    color: white;
    border-color: #198754;
}

/* SSL specific results styling */
.ssl-findings-section {
    border-left: 4px solid #198754;
    padding-left: 15px;
    margin-bottom: 25px;
}

.ssl-findings-section h4 {
    color: #198754;
    margin-bottom: 15px;
}

.ssl-findings-section h5, .ssl-findings-section h6 {
    margin-bottom: 10px;
}

.ssl-severity-group {
    margin-bottom: 20px;
}

.ssl-findings-list {
    margin-left: 15px;
}

/* SSL certificate status indicators */
.ssl-cert-valid {
    color: #198754;
    font-weight: bold;
}

.ssl-cert-expiring {
    color: #fd7e14;
    font-weight: bold;
}

.ssl-cert-expired {
    color: #dc3545;
    font-weight: bold;
}

.ssl-protocol-secure {
    color: #198754;
}

.ssl-protocol-deprecated {
    color: #fd7e14;
}

.ssl-protocol-insecure {
    color: #dc3545;
}

/* SSL scan progress indicators */
.ssl-progress-step {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 4px;
    background-color: #e9ecef;
    border-left: 3px solid #198754;
}

.ssl-progress-step.active {
    background-color: rgba(25, 135, 84, 0.1);
    animation: sslPulse 2s infinite;
}

.ssl-progress-step.completed {
    background-color: rgba(25, 135, 84, 0.2);
    border-left-color: #198754;
}

.ssl-progress-step.failed {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

/* Responsive styles for SSL components */
@media (max-width: 768px) {
    .ssl-scan-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .ssl-finding-card {
        margin-bottom: 10px;
    }
    
    .ssl-scan-info {
        padding: 10px;
    }
    
    #ssl-options-section {
        padding: 10px;
    }
}
