/*
	This CSS file matches the color scheme from MudBlazor to Bootstrap when utilized for authentication.
	The file remains available at all times for demonstration purposes,
	but it is exclusively employed in the 'App.razor' component when authentication is enabled.
*/

.btn-primary {
    text-transform: uppercase;
    --bs-btn-bg: var(--mud-palette-primary) !important;
    --bs-btn-hover-bg: var(--mud-palette-primary-darken) !important;
}

.nav-pills {
    --bs-nav-pills-link-active-bg: var(--mud-palette-primary) !important;
}

.nav {
    --bs-nav-link-color: var(--mud-palette-primary) !important;
    --bs-nav-link-hover-color: var(--mud-palette-primary-darken) !important;
}

.form-control:focus {
    box-shadow: 0 0 0 1.25px var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
}

.form-control-error {
    box-shadow: 0 0 0 1.25px var(--mud-palette-error) !important;
    border-color: var(--mud-palette-error) !important;
}

.form-check-input:focus {
    border-color: var(--mud-palette-primary);
}

.form-check-input:checked {
    background-color: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
}

.background-card {
    max-width: 700px;
    width: 100%;
    margin-top: 16px;
}

.create-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-block: 0px;
}

.create-card-actions {
    display: flex;
    flex-direction: row;
    align-items: end;
    justify-content: end;
    gap: 8px;
}

.page-container {
    height: calc(100vh - 64px);
    width: 100%;
    padding: 16px;
    overflow: auto;
}

.list-page-header {
    display: flex;
    flex-direction: row;
    margin-bottom: 8px;
    gap: 24px;
}

.list-header-title {
    padding-left: 16px;
    text-wrap: nowrap;
}

.list-header-inputs {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-end
}

.list-header-search {
    max-width: 500px;
    width: 100%;
}

.list-row-buttons {
    display: flex;
    justify-content: flex-end !important;
}

.mud-checkbox {
    width: fit-content;
}

.label-column {
    width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flex-row-aligned {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.table-list-cell {
    text-wrap: nowrap;
}

.expansion-panel-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

expansion-panel-header-reversed {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 16px;
}

.expansion-panel-container > :first-child {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.expansion-panel-container-16 > :not(:first-child) {
    margin-top: 16px !important;
    margin-bottom: 0px !important;
}

.expansion-panel-container-8 > :not(:first-child) {
    margin-top: 8px !important;
    margin-bottom: 0px !important;
}

.multiline-text {
    display: block;
    overflow-wrap: break-word;
    white-space: pre-line;
}

.mud-input.mud-input-filled.mud-input-underline.mud-disabled:before {
    border-bottom-style: inherit !important;
}

.chip-file-name {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* CORA */

.dialog-input {
    width: 100%;
    max-width: 280px;
    min-width: 195px;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.section-divider::before,
.section-divider::after {
    content: "";
    border-top: 1px solid var(--mud-palette-divider);
}

.section-divider::before {
    flex: 0 0 24px; /* traço curto à esquerda */
}

.section-divider::after {
    flex: 1 1 auto; /* traço que ocupa o resto da largura */
}

.variable-input {
    width: 100%; 
    min-width: 200px;
    flex: 1 1 0;
}
  

.mud-progress-circular-svg {
    overflow: visible;
}

.fa,
.fa-brands,
.fa-classic,
.fa-regular,
.fa-sharp,
.fa-solid,
.fab,
.far,
.fas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    align-self: center;
}

.fa-2xs {
    font-size: 0.625em;
}
.fa-xs {
    font-size: 0.75em;
}
.fa-sm {
    font-size: 0.875em;
} 
.fa-lg {
    font-size: 1.25em;
}
.fa-xl {
    font-size: 1.5em;
}
.fa-2xl {
    font-size: 2em;
}

.select-group .mud-list-item-text p {
    color: var(--mud-palette-text-primary);
}

.select-group-element {
    padding-left: 24px;
}


/*Hide ScrollBar*/

.hide-scrollbar-menu {
    /* Required to create the scrollable area */
    overflow-y: scroll;
    /* Optional: Ensure it takes maximum height for scrolling */
    height: 100%;
}
/* 1. HIDES SCROLLBAR FOR MICROSOFT EDGE and CHROME (Webkit) */
.hide-scrollbar-menu::-webkit-scrollbar {
    width: 0px; /* Adjusts width of the vertical scrollbar */
    background: transparent; /* Makes the scrollbar background invisible */
}
/* 2. HIDES SCROLLBAR FOR FIREFOX */
.hide-scrollbar-menu {
    scrollbar-width: none; /* 'none' for hiding */
}
/* 3. HIDES SCROLLBAR FOR INTERNET EXPLORER (Older, just for compatibility) */
.hide-scrollbar-menu {
    -ms-overflow-style: none; /* Hides scrollbar in IE */
}


/* Ensure the Blazor Reconnect Modal is visible and covers the screen */
#components-reconnect-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    /* Your existing padding */
    padding-left: 25px;
    padding-top: 100px;
}

/* Show only when Blazor adds the 'show' class */
#components-reconnect-modal.components-reconnect-show {
    display: block;
}

/* Optional: change background color if it fails completely */
#components-reconnect-modal.components-reconnect-failed {
    display: block;
    background-color: rgba(255, 200, 200, 0.9);
}
/* Password rules checklist (js/PasswordRules.js toggles [data-ok]) */
[data-rule] .rule-ok { display: none; }
[data-rule][data-ok] .rule-ok { display: inline-flex; }
[data-rule][data-ok] .rule-pending { display: none; }
[data-rule][data-ok] { color: var(--mud-palette-text-primary); }
