/* =============================================================
   AEO Monitor Dashboard Styles
   ============================================================= */

.sekhlo-aeo-wrap {
    max-width: 1200px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sekhlo-aeo-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    padding: 32px;
    border-radius: 12px;
    margin: 20px 0 24px;
}

.sekhlo-aeo-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.sekhlo-aeo-heading {
    color: #fff;
    font-size: 26px;
    margin: 0;
}

.sekhlo-aeo-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sekhlo-aeo-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
    color: #fff;
}

/* Stats Grid */
.sekhlo-aeo-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.sekhlo-aeo-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sekhlo-aeo-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sekhlo-aeo-stat-icon .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.sekhlo-aeo-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.sekhlo-aeo-stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* Cards */
.sekhlo-aeo-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sekhlo-aeo-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 20px;
}

/* Grade Distribution */
.sekhlo-aeo-grades {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.sekhlo-aeo-grade-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 100px;
    flex: 1;
}

.sekhlo-grade-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sekhlo-grade-count {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}

.sekhlo-grade-bar-wrap {
    width: 100%;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.sekhlo-grade-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.sekhlo-grade-pct {
    font-size: 12px;
    color: #6b7280;
}

/* Table */
.sekhlo-aeo-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sekhlo-aeo-filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sekhlo-aeo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sekhlo-aeo-table th {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sekhlo-aeo-table td {
    border: 1px solid #f3f4f6;
    padding: 12px 14px;
    vertical-align: middle;
    color: #374151;
}

.sekhlo-aeo-table tr:hover td {
    background: #fafafa;
}

/* Score Badge */
.sekhlo-aeo-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sekhlo-aeo-score-num {
    font-weight: 700;
    font-size: 15px;
}

.sekhlo-aeo-score-bar {
    width: 60px;
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.sekhlo-aeo-score-fill {
    height: 100%;
    border-radius: 3px;
}

/* Grade badge */
.sekhlo-grade-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    text-align: center;
    line-height: 28px;
}

/* Missing tags */
.sekhlo-missing-tag {
    display: inline-block;
    background: #fef2f2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin: 2px 2px 2px 0;
}

/* Pagination */
.sekhlo-aeo-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 16px 0 0;
}

.sekhlo-aeo-page-btn {
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: all 0.2s;
}

.sekhlo-aeo-page-btn:hover,
.sekhlo-aeo-page-btn.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* Checklist info */
.sekhlo-aeo-factor-row {
    display: grid;
    grid-template-columns: 220px 1fr 80px 50px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}

.sekhlo-aeo-factor-label {
    font-weight: 600;
    color: #111827;
}

.sekhlo-aeo-factor-desc {
    color: #6b7280;
}

.sekhlo-aeo-factor-weight {
    text-align: right;
    color: #6b7280;
    font-weight: 600;
}

/* Modal */
.sekhlo-aeo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
}

.sekhlo-aeo-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
}

.sekhlo-aeo-modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    width: 680px;
    max-width: 95vw;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
}

.sekhlo-aeo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}

.sekhlo-aeo-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #111827;
}

.sekhlo-aeo-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.sekhlo-aeo-modal-close:hover {
    color: #111827;
}

.sekhlo-aeo-modal-body {
    padding: 24px;
}

/* Score circle in modal */
.sekhlo-modal-score-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
}

.sekhlo-modal-score-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.sekhlo-modal-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}

.sekhlo-modal-check:last-child {
    border-bottom: none;
}

.sekhlo-modal-check-icon {
    margin-top: 1px;
    flex-shrink: 0;
}

.sekhlo-modal-check-info strong {
    color: #111827;
    display: block;
    margin-bottom: 2px;
}

.sekhlo-modal-check-info p {
    color: #6b7280;
    margin: 0 0 3px;
    font-size: 12px;
}

.sekhlo-modal-check-fix {
    color: #2563eb;
    font-size: 12px;
    font-style: italic;
}

@media (max-width: 1100px) {
    .sekhlo-aeo-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sekhlo-aeo-factor-row {
        grid-template-columns: 1fr 1fr;
    }
}
