/* HTTP Response Time Tester specific styles */

.tool-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box; /* Include padding in width */
}

.form-control::placeholder {
    color: #aaa;
}

.form-control:focus {
    border-color: #007bff; /* Primary color */
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.gap-3 > *:not(:last-child) {
    margin-right: 15px; /* Adjust spacing between buttons */
}

.output-field {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 15px;
    border-radius: 5px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 1.1em; /* Slightly larger for emphasis */
    color: #333;
    white-space: pre-wrap; /* Ensures text wraps and preserves whitespace */
    word-break: break-all; /* Breaks words to prevent overflow */
    text-align: center; /* Center the response time */
    font-weight: bold;
}

.pre-scrollable {
    max-height: 400px; /* Limit height */
    overflow-y: auto; /* Enable vertical scrollbar */
}

.error-message {
    color: #dc3545; /* Red for errors */
    font-size: 0.85rem;
    margin-top: 5px;
    display: block; /* Ensures it takes full width */
}

/* Specific error box styling */
#errorMessage {
    background-color: #ffebe9; /* Light red background */
    border: 1px solid #ff4d4f; /* Red border */
}