/* --- Plugin Container and Form --- */
.wpsa-analyzer-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#wpsa-url-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#wpsa-url-input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#wpsa-check-button {
    padding: 12px 25px;
    background-color: #0073aa; /* WordPress Blue */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#wpsa-check-button:hover:not(:disabled) {
    background-color: #005f7f;
}

#wpsa-check-button:disabled {
    background-color: #888;
    cursor: not-allowed;
}

/* --- Messages --- */
#wpsa-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

#wpsa-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#wpsa-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* --- Score Card --- */
.wpsa-score-card {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 30px;
    background-color: #f7f7f7;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.wpsa-score-gauge-container {
    text-align: center;
    position: relative;
    width: 150px;
    height: 150px;
}

/* Placeholder for the gauge visual */
.wpsa-score-gauge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 10px solid #ccc; /* Base ring */
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 1s;
}

.wpsa-score-value {
    font-size: 30px;
    font-weight: bold;
}

.wpsa-score-label {
    font-weight: 500;
    color: #555;
}

.wpsa-status-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 300px;
}

.wpsa-status-item {
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.wpsa-status-item .count {
    display: block;
    font-size: 20px;
    margin-bottom: 2px;
}

/* Status colors for summary */
.wpsa-status-item.pass { background-color: #e6ffed; color: #28a745; }
.wpsa-status-item.improvement { background-color: #fff9e6; color: #ffc107; }
.wpsa-status-item.failed { background-color: #fdeaea; color: #dc3545; }
.wpsa-status-item.total { background-color: #f0f0f0; color: #333; }


/* --- Results Table --- */
.wpsa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.wpsa-table th, .wpsa-table td {
    padding: 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.wpsa-table thead th {
    background-color: #0073aa; /* Header Color */
    color: white;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.wpsa-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Status Column Styling */
.wpsa-status-cell {
    text-align: center !important;
    font-weight: bold;
    color: white;
}

/* Status color codes */
.wpsa-status-cell.pass { 
    background-color: #28a745; /* Green */
}
.wpsa-status-cell.failed { 
    background-color: #dc3545; /* Red */
}
.wpsa-status-cell.need-improvement { 
    background-color: #ffc107; /* Orange */
}

/* Formatting for the Details column */
.wpsa-table td strong {
    color: #005f7f;
    font-weight: 700;
}

/* --- Google Preview Styles --- */
.wpsa-google-preview {
    max-width: 600px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 2px;
    background-color: #fff;
    font-family: arial, sans-serif;
    margin: 5px 0;
}

.wpsa-preview-url {
    color: #006621; /* Green URL */
    font-size: 14px;
    margin-bottom: 2px;
}

.wpsa-preview-title {
    color: #1a0dab; /* Blue Title */
    font-size: 20px;
    font-weight: normal;
    text-decoration: none;
    line-height: 1.2;
}

.wpsa-preview-description {
    color: #4d5156; /* Dark Gray Description */
    font-size: 13px;
    line-height: 1.4;
    margin-top: 2px;
}