/* API Request Tester Styles */

.api-textarea {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
}

/* Response Info */
.api-response-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    background-color: #e7f3ff;
    border: 1px solid #b6d4fe;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

[data-bs-theme="dark"] .api-response-info {
    background-color: #052c65;
    border-color: #084298;
}

.api-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-info-label {
    font-weight: 600;
    color: #052c65;
}

[data-bs-theme="dark"] .api-info-label {
    color: #6ea8fe;
}

.api-info-value {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    color: #212529;
}

[data-bs-theme="dark"] .api-info-value {
    color: #f8f9fa;
}

/* Status Colors */
.status-success {
    color: #198754;
}

.status-redirect {
    color: #0d6efd;
}

.status-client-error {
    color: #fd7e14;
}

.status-server-error {
    color: #dc3545;
}

[data-bs-theme="dark"] .status-success {
    color: #51cf66;
}

[data-bs-theme="dark"] .status-redirect {
    color: #6ea8fe;
}

[data-bs-theme="dark"] .status-client-error {
    color: #fd7e14;
}

[data-bs-theme="dark"] .status-server-error {
    color: #ea868f;
}

/* Response Box */
.api-response-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

[data-bs-theme="dark"] .api-response-box {
    background-color: #212529;
    border-color: #495057;
}

.api-headers-pre,
.api-body-pre {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #212529;
}

[data-bs-theme="dark"] .api-headers-pre,
[data-bs-theme="dark"] .api-body-pre {
    color: #f8f9fa;
}
