/* ZAP Scanner specific styles */

.zap-scan-badge {
    background-color: #5c2d91; /* Purple for ZAP */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin: 2px;
}

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

.zap-finding-card:hover {
    box-shadow: 0 5px 15px rgba(92, 45, 145, 0.3);
}

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

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

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

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

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

.zap-scan-info {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

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

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

.zap-progress {
    height: 10px;
}

/* Animation for active scan */
.zap-scanning {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(92, 45, 145, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(92, 45, 145, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(92, 45, 145, 0);
    }
}

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

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

.zap-dashboard-card .card-header {
    background-color: #5c2d91;
    color: white;
    font-weight: bold;
}

.zap-scan-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.zap-scan-type {
    flex: 1;
    min-width: 120px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    background-color: #f1f1f1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zap-scan-type:hover {
    background-color: #e0e0e0;
}

.zap-scan-type.active {
    background-color: #5c2d91;
    color: white;
}

.zap-tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted #666;
    cursor: help;
}

.zap-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.zap-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ZAP Stat Box */
.zap-stat-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border-left: 5px solid #5c2d91;
}

.zap-stat-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.zap-stat-box h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.zap-stat-box p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
}

.zap-stat-box.high {
    border-left-color: #dc3545;
}

.zap-stat-box.medium {
    border-left-color: #fd7e14;
}

.zap-stat-box.low {
    border-left-color: #ffc107;
}

.zap-chart-container {
    height: 250px;
    margin-bottom: 20px;
}

/* ZAP scan detailed view */
.zap-scan-details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.zap-scan-details h4 {
    color: #5c2d91;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.zap-spider-details, .zap-scan-details {
    background-color: rgba(92, 45, 145, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}
