/**
 * EAA Compliance - Admin Styles
 */

/* Meta Box Styles */
#eaa-compliance-checker {
    background: #f9f9f9;
}

#eaa-compliance-status .dashicons {
    color: #0073aa;
    vertical-align: middle;
}

#eaa-scan-results {
    margin-top: 15px;
}

.eaa-issue {
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #ddd;
    background: #fff;
}

.eaa-issue.critical {
    border-left-color: #dc3232;
}

.eaa-issue.warning {
    border-left-color: #ffb900;
}

.eaa-issue.info {
    border-left-color: #0073aa;
}

.eaa-issue-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.eaa-issue-severity {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-right: 8px;
}

.eaa-issue-severity.critical {
    background: #dc3232;
    color: #fff;
}

.eaa-issue-severity.warning {
    background: #ffb900;
    color: #000;
}

.eaa-issue-severity.info {
    background: #0073aa;
    color: #fff;
}

.eaa-issue-message {
    font-weight: 600;
    margin-bottom: 5px;
}

.eaa-issue-wcag {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.eaa-issue-element {
    background: #f5f5f5;
    padding: 8px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 12px;
    overflow-x: auto;
    margin: 5px 0;
}

.eaa-fix-button {
    margin-top: 8px;
}

/* Publish Modal Styles */
.eaa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eaa-modal {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.eaa-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background: #dc3232;
    color: #fff;
}

.eaa-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.eaa-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.eaa-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eaa-issue-count {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 10px;
    background: #fff3cd;
    border-left: 4px solid #ffb900;
}

.eaa-modal .eaa-issue {
    margin-bottom: 15px;
}

/* Quick Fix Form */
.eaa-quick-fix {
    margin-top: 10px;
    padding: 10px;
    background: #f0f6fc;
    border-radius: 3px;
}

.eaa-quick-fix label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.eaa-quick-fix input[type="text"],
.eaa-quick-fix textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.eaa-quick-fix .button {
    margin-top: 8px;
}

/* Loading State */
.eaa-loading {
    text-align: center;
    padding: 20px;
}

.eaa-loading .spinner {
    float: none;
    margin: 0 auto 10px;
}

/* Settings Page */
.eaa-compliance-settings-header h2 {
    margin-top: 0;
}

.eaa-compliance-info h3 {
    margin-top: 0;
}

.eaa-compliance-info ul {
    margin-left: 20px;
}

/* Statement Generator */
.eaa-statement-intro h2 {
    margin-top: 0;
}

.eaa-statement-intro ul {
    margin-left: 20px;
}

/* Responsive */
@media (max-width: 782px) {
    .eaa-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .eaa-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .eaa-modal-footer .button {
        width: 100%;
        text-align: center;
    }
}
