/**
 * Accessibility Guard — Admin Styles
 */

/* Summary Cards */
.wpag-summary-cards {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.wpag-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px 24px;
    flex: 1;
    min-width: 180px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.wpag-card-number {
    font-size: 32px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.2;
}

.wpag-card-label {
    font-size: 13px;
    color: #646970;
    margin-top: 4px;
}

.wpag-card-breakdown {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wpag-card-errors .wpag-card-number {
    color: #d63638;
}

/* Severity Badges */
.wpag-badge-error {
    display: inline-block;
    background: #d63638;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.wpag-badge-warning {
    display: inline-block;
    background: #dba617;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.wpag-badge-notice {
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.wpag-badge-ok {
    display: inline-block;
    color: #68de7c;
    font-weight: 600;
    font-size: 13px;
}

/* Actions Bar */
.wpag-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

/* Progress Bar */
.wpag-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.wpag-progress-bar {
    flex: 1;
    max-width: 300px;
    height: 20px;
    background: #dcdcde;
    border-radius: 10px;
    overflow: hidden;
}

.wpag-progress-fill {
    height: 100%;
    background: #2271b1;
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.wpag-progress-text {
    font-size: 13px;
    color: #646970;
    white-space: nowrap;
}

/* Results Table */
.wpag-results-table {
    margin-top: 0;
}

.wpag-results-table th,
.wpag-results-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

.wpag-col-center {
    text-align: center;
}

.wpag-results-table tbody tr:hover {
    background: #f6f7f7;
}

/* Issues Table (Detail View) */
.wpag-issues-table th,
.wpag-issues-table td {
    padding: 10px 12px;
    vertical-align: top;
}

.wpag-severity-error {
    border-left: 3px solid #d63638;
}

.wpag-severity-warning {
    border-left: 3px solid #dba617;
}

.wpag-severity-notice {
    border-left: 3px solid #2271b1;
}

.wpag-element-snippet,
.wpag-element-short {
    display: inline-block;
    max-width: 250px;
    font-size: 12px;
    background: #f0f0f1;
    padding: 4px 8px;
    border-radius: 3px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.wpag-element-full {
    display: none;
    font-size: 12px;
    background: #f0f0f1;
    padding: 8px 10px;
    border-radius: 3px;
    line-height: 1.6;
    word-break: break-all;
    white-space: pre-wrap;
    margin-top: 6px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dcdcde;
}

.wpag-toggle-element {
    background: none;
    border: 1px solid #c3c4c7;
    border-radius: 3px;
    cursor: pointer;
    padding: 2px 4px;
    vertical-align: middle;
    margin-left: 4px;
    color: #2271b1;
    line-height: 1;
}

.wpag-toggle-element:hover {
    background: #f0f0f1;
    color: #135e96;
}

.wpag-toggle-element .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Keep element column from stretching table */
.wpag-issues-table td:last-child {
    max-width: 350px;
    min-width: 200px;
}

/* Detail View */
.wpag-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 16px 0;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    flex-wrap: wrap;
}

.wpag-back {
    text-decoration: none;
}

/* Empty State */
.wpag-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-top: 20px;
}

.wpag-empty-state h2 {
    margin-top: 12px;
    color: #646970;
}

.wpag-empty-state p {
    color: #8c8f94;
}

/* Post List Dots */
.wpag-dot {
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
}

.wpag-dot-green {
    color: #68de7c;
}

.wpag-dot-yellow {
    color: #dba617;
}

.wpag-dot-red {
    color: #d63638;
}

.wpag-dot-gray {
    color: #c3c4c7;
}

/* Statement Form */
.wpag-statement-form {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.wpag-statement-preview {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px 30px;
    max-width: 800px;
}

/* Spinner fix */
#wpag-statement-spinner.is-active {
    visibility: visible;
    float: none;
    margin-left: 8px;
}
