/* CSP Validator Plugin Styles */
.csp-validator-wrapper {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.csp-validator-wrapper h2 {
    color: #233D78;
    border-bottom: 3px solid #5B98BA;
    padding-bottom: 10px;
}
.csp-input-group {
    margin-bottom: 20px;
}
.csp-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #233D78;
}
.csp-input-group input[type="url"],
.csp-input-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border 0.2s;
}
.csp-input-group input[type="url"]:focus,
.csp-input-group textarea:focus {
    border-color: #5B98BA;
    outline: none;
    box-shadow: 0 0 0 2px rgba(91,152,186,0.2);
}
.csp-or-divider {
    text-align: center;
    margin: 20px 0;
    color: #888;
    font-weight: bold;
    position: relative;
}
.csp-or-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    z-index: 1;
}
.csp-or-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #ddd;
    z-index: 0;
}
.csp-submit-group {
    text-align: center;
}
.csp-button {
    background: #233D78;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.csp-button:hover {
    background: #1a2f5e;
}
.csp-button:active {
    transform: scale(0.97);
}

/* Results */
.csp-results-wrapper {
    margin-top: 30px;
    border-top: 3px solid #5B98BA;
    padding-top: 20px;
}
.csp-results-wrapper h3 {
    color: #233D78;
}
.csp-success {
    background: #e6f7e6;
    color: #2e7d32;
    padding: 15px;
    border-left: 6px solid #2e7d32;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 16px;
}
.csp-errors, .csp-warnings, .csp-recommendations {
    margin: 15px 0;
    padding: 12px 16px;
    border-radius: 4px;
}
.csp-errors {
    background: #ffebee;
    border-left: 6px solid #FF6B6B;
    color: #b71c1c;
}
.csp-warnings {
    background: #fff3e0;
    border-left: 6px solid #ffa726;
    color: #e65100;
}
.csp-recommendations {
    background: #e3f2fd;
    border-left: 6px solid #5B98BA;
    color: #0d47a1;
}
.csp-errors h4, .csp-warnings h4, .csp-recommendations h4 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.csp-errors ul, .csp-warnings ul, .csp-recommendations ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}
.csp-errors li, .csp-warnings li, .csp-recommendations li {
    margin-bottom: 4px;
}

/* Directives table */
.csp-directives-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.csp-directives-table th {
    background: #233D78;
    color: #fff;
    text-align: left;
    padding: 8px 12px;
}
.csp-directives-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
}
.csp-directives-table tr:nth-child(even) {
    background: #f5f9fc;
}
.csp-directives-table code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.csp-original-policy {
    margin-top: 20px;
}
.csp-original-policy pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid #ddd;
}
.csp-original-policy code {
    font-family: monospace;
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-all;
}