html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Hide InputFile component for patient photo upload */
input#photo-upload.file-input,
input.file-input[type="file"],
input#photo-upload[type="file"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* Hide InputFile component for provider photo upload */
input#provider-photo-upload.file-input,
input#provider-photo-upload[type="file"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--bs-secondary-color);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}


.or {
    display: flex;
    flex-direction: row;
    align-items: center;
}

    .or .or-line {
        border-bottom: 1px solid var(--bs-body-color);
        width: 100%;
        opacity: 0.2;
    }

    .or .or-text {
        padding: 0 0.625rem 0px 0.625rem;
        font-size: 0.75rem;
        line-height: 1.125rem;
        color: var(--bs-body-color);
        opacity: 0.7;
    }

.links-area {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding-top: 0.625rem;
}

.links-container {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
}

    .links-container .dot {
        height: 0.3125rem;
        width: 0.3125rem;
        margin: 0 0.1875rem;
        border-radius: 50%;
        background-color: var(--bs-body-color);
        opacity: 0.7;
    }

.manage-layout {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.info-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.15;
    background: var(--bs-primary);
    z-index: -1;
}

.info-message {
    padding: 0.625rem 1rem 0.625rem 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .info-message.info-panel {
        margin-bottom: 0.625rem;
    }

.manage-content {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.large-input {
    height: 4.3125rem;
    font-size: 1.875rem;
}

.title-content-text-secondary {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.button-group {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
}

.confirm-button {
    margin-top: 0.3125rem;
}

.display-desktop {
    display: block;
}

.display-mobile {
    display: none;
}

.icon-external-provider {
    width: 1rem;
    height: 1rem;
}

.icon-google {
    background-image: url("/images/account/providers/google-logo.svg")
}

.icon-facebook {
    background-image: url("/images/account/providers/facebook-logo.svg")
}

.icon-microsoft {
    background-image: url("/images/account/providers/microsoft-logo.svg")
}

.icon-twitter {
    background-image: url("/images/account/providers/x-logo.svg")
}

@media (max-width: 768px) {
    .display-desktop {
        display: none;
    }

    .display-mobile {
        display: block;
    }
}

/* MudBlazor layout: make main content area the scroll container.
   body has overflow:hidden, and .mud-layout is display:block with a constrained
   height from the flex parent (body). Without an explicit height, .mud-main-content
   grows beyond .mud-layout and gets clipped by body's overflow:hidden. */
.mud-main-content {
    height: 100%;
    overflow-y: auto;
}

/* MudBlazor sidebar: match main branch nav styling */
.mud-drawer .mud-navmenu {
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mud-drawer .mud-nav-link {
    border-radius: 0.75rem;
    margin: 0 4px;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease-in-out;
    color: var(--mud-palette-drawer-text);
    white-space: nowrap;
    overflow: hidden;
}

.mud-drawer .mud-nav-link .mud-nav-link-icon {
    margin-right: 0.75rem;
}

.mud-drawer .mud-nav-link:hover {
    color: var(--mud-palette-primary) !important;
    background-color: color-mix(in srgb, var(--mud-palette-primary) 8%, transparent) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mud-drawer .mud-nav-link.active {
    color: var(--mud-palette-primary) !important;
    background-color: color-mix(in srgb, var(--mud-palette-primary) 8%, transparent) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Mini (collapsed) sidebar: center icons, hide text overflow */
.mud-drawer--closed .mud-nav-link {
    justify-content: center;
    padding: 0.5rem 0;
    margin: 0;
}

.mud-drawer--closed .mud-nav-link .mud-nav-link-icon {
    margin-right: 0;
}

/* MudBlazor appbar: use dark text on white appbar to match main branch */
.mud-appbar,
.mud-appbar .mud-toolbar {
    color: var(--mud-palette-text-primary) !important;
}

.mud-appbar .mud-button-root {
    color: inherit !important;
    text-transform: none;
}

/* MudDataGrid: override MudBlazor's inline "width: max-content" on
   .mud-table-container so grids fill available width instead of
   shrinking to content.  Combined with table-layout:fixed on the table,
   this prevents column width twitching during virtualized scroll. */
.mud-table-container {
    width: 100% !important;
}

.mud-table-root {
    width: 100%;
    table-layout: fixed;
}

/* ── App-Wide Compact Density ──
   MudBlazor v9 has no global density system (GitHub #8946 closed as "not planned").
   The theme controls typography only. Component internal spacing requires CSS overrides.
   These target the highest-impact areas: grid cells, dropdown items, and tabs.
   Per-component Dense/Margin.Dense is already applied on all inputs and grids. */

/* Data grid cells: MudBlazor default is ~12px 16px; tighten to match Linear */
.mud-table-cell {
    padding: 6px 12px !important;
}

.mud-table-head .mud-table-cell {
    padding: 8px 12px !important;
}

/* Dropdown list items: default ~8px vertical padding is generous */
.mud-list-item {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    min-height: 32px !important;
}

/* Tabs: tighter for calendar view toggle and admin tabs */
.mud-tab {
    min-width: auto !important;
    padding: 6px 12px !important;
}

/* Restore touch-friendly sizes on mobile */
@media (max-width: 768px) {
    .mud-table-cell {
        padding: 10px 12px !important;
    }

    .mud-list-item {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        min-height: 44px !important;
    }

}

