/* Style Advanced Vulnerability Scanner */

.avs-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    color: #333;
}

.avs-ethical-warning {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #5d4037;
    font-size: 14px;
}

.avs-form {
    background: #f8f9fa;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
}

.avs-form-group {
    margin-bottom: 20px;
}

.avs-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.avs-form-control {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.avs-form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.avs-form-text {
    display: block;
    margin-top: 5px;
    font-size: 85%;
    color: #6c757d;
}

.avs-actions {
    display: flex;
    gap: 10px;
}

.avs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 10px 16px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 4px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    cursor: pointer;
}

.avs-button-primary {
    color: #fff;
    background-color: #0073aa;
    border-color: #006799;
}

.avs-button-primary:hover {
    color: #fff;
    background-color: #006799;
    border-color: #005a89;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.25);
}

.avs-button-primary:active, .avs-button-primary:focus {
    color: #fff;
    background-color: #006799;
    border-color: #005a89;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.5);
}

.avs-button-secondary {
    color: #2c3e50;
    background-color: #e2e2e2;
    border-color: #ccc;
}

.avs-button-secondary:hover {
    color: #2c3e50;
    background-color: #d5d5d5;
    border-color: #bfbfbf;
}

.avs-button[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.avs-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: avs-spinner 1s linear infinite;
}

@keyframes avs-spinner {
    to {
        transform: rotate(360deg);
    }
}

.avs-scan-status {
    margin-bottom: 25px;
}

.avs-progress {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.avs-progress-bar {
    height: 100%;
    background-color: #0073aa;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.avs-progress-text {
    text-align: center;
    font-size: 14px;
    color: #6c757d;
}

.avs-results {
    background: #f8f9fa;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 20px;
}

.avs-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.avs-results-header h3 {
    margin: 0;
    font-size: 22px;
    color: #2c3e50;
}

.avs-summary {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px 25px -5px;
}

.avs-summary-item {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    margin: 5px;
}

.avs-summary-secure {
    background-color: #d4edda;
    color: #155724;
}

.avs-summary-warning {
    background-color: #fff3cd;
    color: #856404;
}

.avs-summary-vulnerable {
    background-color: #f8d7da;
    color: #721c24;
}

.avs-summary-error {
    background-color: #e2e3e5;
    color: #495057;
}

.avs-summary-count {
    display: block;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.avs-summary-label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.avs-findings {
    margin-top: 15px;
}

.avs-finding {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.avs-finding-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.avs-finding-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.avs-finding-status {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-secure {
    background-color: #d4edda;
    color: #155724;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-vulnerable {
    background-color: #f8d7da;
    color: #721c24;
}

.status-error {
    background-color: #e2e3e5;
    color: #495057;
}

.avs-finding-message {
    margin: 0 0 10px;
    font-weight: 500;
}

.avs-finding-details {
    margin: 0;
    padding-left: 20px;
}

.avs-finding-details li {
    margin-bottom: 5px;
}

.avs-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px 15px;
    margin-top: 15px;
}

/* Style responsywne */
@media (max-width: 768px) {
    .avs-actions {
        flex-direction: column;
    }
    
    .avs-summary {
        flex-direction: column;
    }
    
    .avs-summary-item {
        min-width: 100%;
    }
    
    .avs-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}