﻿flex-row:has(> label-field),
flex-row:has(> input-field) {
    padding: 0;
    border-bottom: 1px solid var(--border-color) !important;
    height: 100% !important;
    transition: border-color 0.3s ease;
}

label-field {
    display: grid;
    place-content: center;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-self: stretch;
    width: 20%;
    background: var(--bg-tertiary);
    border-right: 1px solid var(--border-color) !important;
    padding: 0.875rem 1rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: .92rem;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

    label-field label {
        font-weight: 500;
        color: var(--text-primary);
        margin: 0;
    }

input-field {
    display: grid;
    padding: 1em;
    height: 100% !important;
    width: 80%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

/* High Contrast mode for form fields */
[data-theme="high-contrast"] flex-row:has(> label-field),
[data-theme="high-contrast"] flex-row:has(> input-field) {
    border: 3px solid #ffffff !important;
    background-color: #000000 !important;
}

[data-theme="high-contrast"] label-field {
    background: #000000 !important;
    border-right: 3px solid #ffffff !important;
    color: #ffffff !important;
}

    [data-theme="high-contrast"] label-field label {
        color: #ffffff !important;
    }

[data-theme="high-contrast"] input-field {
    background-color: #000000 !important;
    color: #ffffff !important;
}

    [data-theme="high-contrast"] input-field p,
    [data-theme="high-contrast"] input-field span,
    [data-theme="high-contrast"] input-field div {
        color: #ffffff !important;
    }
