.seo-audit-tool-form {
    max-inline-size: 800px;
    margin-block: 2rem;
    margin-inline: auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sat-form {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    margin-block-end: 2rem;
}

.sat-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-block-end: 1rem;
}

.sat-form-group label {
    display: block;
    margin-block-end: 0.5rem;
    font-weight: bold;
}

.sat-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.sat-button {
    background-color: #c8f31d;
    color: white;
    margin:0;
    padding:20px 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}


.sat-button:hover {
    background-color: #728d07;
}

.sat-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.sat-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.sat-error {
    background: #728d07;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 1rem;
    margin-block: 1rem;
    color: #721c24;
}

.sat-tabs {
    display: flex;
    border-block-end: 1px solid #ddd;
    margin-block-end: 2rem;
    gap: 0.5rem;
}

.sat-tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
    margin-block-end: -1px;
    transition: all 0.3s ease;
}

.sat-tab:hover {
    background-color: #f0f0f1;
}

.sat-tab.active {
    border: 1px solid #ddd;
    border-block-end-color: white;
    background: white;
    color: #2271b1;
    font-weight: bold;
}

.sat-tab-content {
    background: white;
    padding: 1rem;
    border-radius: 0 0 4px 4px;
}

.sat-tab-panel {
    display: none;
}

.sat-tab-panel.active {
    display: block;
}

.sat-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-block-end: 1rem;
}

.sat-metric {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    margin-block-end: 2rem;
}

.sat-metric:hover {
    transform: translateY(-2px);
}

.sat-metric-label {
    font-weight: bold;
    color: #1d2327;
    margin-block-end: 0.5rem;
}

.sat-metric-value {
    font-size: 1.5rem;
    color: #2271b1;
    font-weight: bold;
}

.sat-pagespeed-results,
.sat-moz-results {
    padding: 1rem 0;
}

.sat-results {
    margin-block-start: 2rem;
}

.audit-section {
    max-inline-size: 1200px;
    margin-block: 2rem;
    margin-inline: auto;
    padding: 1rem;
}

.metrics-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-block-end: 2rem;
    padding: 1.5rem;
}

.metrics-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-block-end: 1.5rem;
    padding-block-end: 0.5rem;
    border-block-end: 2px solid #eee;
}

.metrics-section h4 {
    color: #34495e;
    font-size: 1.2rem;
    margin-block: 1rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-block-start: 1rem;
}

.score-section {
    margin-block-end: 2rem;
}

.metric-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-label {
    font-size: 0.9rem;
    color: #666;
    margin-block-end: 0.5rem;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Score colors */
.score-good {
    background: #d4edda;
    border-inline-start: 4px solid #28a745;
}

.score-good .metric-value {
    color: #155724;
}

.score-average {
    background: #fff3cd;
    border-inline-start: 4px solid #ffc107;
}

.score-average .metric-value {
    color: #856404;
}

.score-poor {
    background: #f8d7da;
    border-inline-start: 4px solid #dc3545;
}

.score-poor .metric-value {
    color: #721c24;
}

.detailed-metrics, .crux-metrics {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1.5rem;
    margin-block-start: 1rem;
}

.audit-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 1.5rem;
    margin-block: 1rem;
    text-align: center;
}

.error-message {
    color: #721c24;
    font-size: 1.1rem;
    margin-block-end: 0.5rem;
}

.error-help {
    color: #666;
    font-size: 0.9rem;
}

#audit-loader {
    display: none;
    text-align: center;
    padding: 2rem;
}

#audit-loader:after {
    content: '';
    display: inline-block;
    inline-size: 40px;
    block-size: 40px;
    border: 4px solid #f3f3f3;
    border-block-start: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metrics-section {
        padding: 1rem;
    }

    .metric-item {
        padding: 0.8rem;
    }
}