/* General Container */
.speed-insight-container {
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    background-color: #ffffff;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Form Styling */
.speed-insight-form {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.speed-insight-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.speed-insight-input-group {
    display: flex;
    gap: 10px;
}

.speed-insight-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.speed-insight-button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s ease;
}

.speed-insight-button:hover {
    background-color: #0056b3;
}
.speed-insight-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Report Area */
.speed-insight-report-area {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #eee;
}

.speed-insight-report-area p:first-child {
    margin-top: 0;
}


/* Loading and Error States */
.loading, .error, .warning {
    text-align: center;
    font-size: 16px;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.loading {
    color: #555;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
}

.loading i {
    margin-left: 8px;
}

.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}


/* Results Styling */
.speed-insight-results {
    /* Add styles if needed for the overall results wrapper */
}

/* Score Section */
.speed-insight-score {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 25px;
    text-align: center;
}

.speed-insight-score-heading {
    font-size: 24px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
}

.speed-insight-score-value {
    font-size: 1.5em; /* Make score number bigger */
}

.speed-insight-score-interpretation {
    font-size: 1.1em;
    color: #444;
    margin-top: 10px;
}

/* Metrics Section */
.speed-insight-metrics {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
}

.speed-insight-metrics-heading {
    font-size: 20px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}
.speed-insight-metrics-intro {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.speed-insight-metrics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.speed-insight-metric {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.speed-insight-metric:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.speed-insight-metric-label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
    color: #111;
}

.speed-insight-metric-value {
    font-weight: bold;
    font-size: 1.1em;
    margin-right: 5px;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block; /* Needed for background/padding */
}

.speed-insight-metric-rating {
    font-style: italic;
    color: #666;
    font-size: 0.95em;
}

.speed-insight-metric-interpretation {
    margin-top: 8px;
    margin-bottom: 0;
    color: #555;
    font-size: 1em;
    line-height: 1.5;
}

/* Metric Performance Classes */
.metric-good {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}
.metric-average {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}
.metric-poor {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}
.metric-na, .metric-error, .metric-unknown {
    color: #6c757d;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
}


/* Conclusion Section */
.speed-insight-conclusion {
    margin-top: 30px;
    padding: 20px;
    background-color: #e7f3ff; /* Light blue background */
    border: 1px solid #b8d7f5;
    border-radius: 5px;
}

.speed-insight-conclusion-heading {
    font-size: 18px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    color: #004085; /* Darker blue */
}

.speed-insight-conclusion ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: #333;
}

.speed-insight-conclusion li {
    margin-bottom: 8px;
}

.speed-insight-conclusion p {
    font-weight: bold;
    color: #004085;
    margin-bottom: 0;
}