/* HTTP Header Viewer Styles */

/* Headers Display Container */
.headers-display {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

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

/* Headers Table */
.headers-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.header-row {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 0.75rem;
    gap: 0.5rem;
}

[data-bs-theme="dark"] .header-row {
    background-color: #2b3035;
    border-color: #495057;
}

.header-key {
    font-weight: 600;
    color: #052c65;
    font-size: 0.875rem;
    word-break: break-word;
}

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

.header-value {
    color: #495057;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    word-break: break-all;
    padding-left: 1rem;
}

[data-bs-theme="dark"] .header-value {
    color: #adb5bd;
}

/* Status Info */
.status-info {
    background-color: #e7f3ff;
    border: 1px solid #b6d4fe;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
}

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

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

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

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

.status-value {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
}

/* Status Code 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;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .header-row {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .header-key {
        min-width: 200px;
        max-width: 250px;
        flex-shrink: 0;
    }

    .header-value {
        flex: 1;
        padding-left: 0;
        border-left: 2px solid #dee2e6;
        padding-left: 1rem;
    }

    [data-bs-theme="dark"] .header-value {
        border-left-color: #495057;
    }
}
