/* Проверка заголовков HTTP (curl-like) */

.http-headers-tool {
    padding: 1rem 0;
}

.http-headers-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .http-headers-layout {
        grid-template-columns: 1fr;
    }
}

.http-headers-panel {
    padding: 1.25rem;
    border-radius: 12px;
    background: var(--bg-secondary, #f8fafc);
}

.http-headers-form .service-input-wrapper {
    margin-bottom: 1rem;
}

.http-headers-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.http-headers-opts .service-input-wrapper {
    margin-bottom: 0;
    min-width: 120px;
}

.http-headers-opts .service-input[type="text"] {
    min-width: 200px;
}

.http-headers-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.http-headers-checkboxes .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.http-headers-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.http-headers-curl-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.http-headers-pre {
    margin: 0 0 1rem 0;
    padding: 1rem;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    background: var(--bg-primary);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.http-headers-pre-small {
    font-size: 0.75rem;
}

.http-headers-summary {
    margin-bottom: 1rem;
}

.http-headers-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.http-headers-summary-item {
    padding: 0.5rem 0;
}

.http-headers-summary-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.http-headers-url {
    word-break: break-all;
    font-size: 0.85rem;
}

.http-headers-timings h4,
.http-headers-redirects h4,
.http-headers-curl-cmd .label {
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.http-headers-timings-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.25rem 1rem;
    align-items: baseline;
    font-size: 0.9rem;
}

.http-headers-timings-grid strong {
    font-variant-numeric: tabular-nums;
}

.http-headers-redirects #hhc-redirects {
    font-size: 0.875rem;
}

.http-headers-redirect-item {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.http-headers-redirect-item:last-child {
    border-bottom: none;
}

.http-headers-redirect-code {
    font-weight: 600;
    margin-right: 0.5rem;
}

.http-headers-curl-cmd {
    margin-top: 1rem;
}

.http-headers-result-actions {
    margin-top: 1rem;
}

.http-headers-result-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
