@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');

/* General layout */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Validación de formularios */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

/* Enlaces estilo botón */
.button-link {
    text-decoration: unset;
}

/* Mensajes de error Blazor */
#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;
    }

/* Títulos */
.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;
}

/* Layout principal */
.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%;
}

/* Header */
.layout-header {
    background-color: #2B3D4B;
    color: #FCF2DC;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    height: 80px;
    transition: margin-left 0.3s ease;
}

.header-banner {
    height: 60px;
    object-fit: contain;
}

.header-title {
    font-size: 1.25rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.layout-footer {
    background-color: #2B3D4B;
    color: #FCF2DC;
    text-align: center;
    padding: 1rem;
    font-size: 0.875rem;
    transition: margin-left 0.3s ease;
}

.footer-content {
    margin: 0 auto;
}

/* Drawer & Sidebar */
.drawer-wrapper {
    background-color: #2B3D4B;
    color: #FCF2DC;
    height: 100%;
}

.navigation-drawer {
    background-color: #2B3D4B;
    color: #FCF2DC;
    position: relative;
    overflow: hidden;
}

.dxbl-drawer-body {
    background-color: transparent !important;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: stretch;
}

/* Menu general */
.dxbl-menu {
    width: 100% !important;
    max-width: 240px;
    box-sizing: border-box;
    background-color: transparent !important;
    color: #FCF2DC !important;
}

    .dxbl-menu .dxbl-menu-item {
        background-color: transparent !important;
        color: #FCF2DC !important;
        font-weight: bold;
        border-radius: 8px;
        padding: 60px 10px;
    }

        .dxbl-menu .dxbl-menu-item:hover {
            background-color: rgba(255, 255, 255, 0.1) !important;
            color: #ffffff !important;
        }

        .dxbl-menu .dxbl-menu-item.dxbl-menu-item-selected {
            background-color: #3C4E5A !important;
            color: white !important;
        }

/* Íconos */
.icon {
    margin-right: 10px;
}

/* Contenido principal al lado del drawer */
.drawer-content {
    padding: 20px;
}

/* Ocultar sombra innecesaria */
.shading-copy {
    display: none;
}

/* Uniformidad visual en header, footer y menu */
.dxbl-drawer-header,
.dxbl-drawer-footer,
.dxbl-drawer,
.dxbl-menu-bar {
    background-color: transparent !important;
}

.custom-sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: transparent; /* Fondo oscuro tipo sidebar */
    height: 100%;
    gap: 0.75rem;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 12px;
    font-weight: 500;
}

    /* Efecto hover */
    .menu-item:hover {
        background-color: #2B3E4C;
        color: #F4DFB9; /* Azul celeste para resaltar */
    }

    /* Activo (opcional si usás NavLink) */
    .menu-item.active {
        background-color: #2B3E4C;
        color: #F4DFB9;
    }

.menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.menu-item:hover .menu-icon {
    filter: brightness(0) saturate(100%) invert(95%) sepia(30%) saturate(537%) hue-rotate(354deg) brightness(103%) contrast(95%);
}

.menu-button {
    background-color: transparent;
    border: none;
    color: #F4DFB9;
    padding: 6px 6px;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 4px;
}

    .menu-button:hover {
        background-color: #3d5667;
        color: #ffffff;
        cursor: pointer;
    }

    .menu-button .dxbl-btn-icon {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

a[href*="toggledSidebar"] {
    display: inline-flex; /* Se ajusta al tamaño del contenido */
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    box-shadow: none;
    text-decoration: none;
    background: none;
}

header .menu-button {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.dxbl-menu-item .dxbl-menu-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1); /* opcional para dar estilo */
}

.menu-button-nav {
    background-color: transparent;
    border: none;
    color: #F4DFB9;
    padding: 6px 6px;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 4px;
}

    .menu-button-nav:hover {
        background-color: #3d5667;
        color: #ffffff;
        cursor: pointer;
    }

    .menu-button-nav .dxbl-btn-icon {
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.header-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1rem 3rem;
    background-color: #2B3D4B;
    color: #F4DFB9;
    min-height: 120px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
}

.header-title {
    flex-grow: 1;
    text-align: center;
    margin: 0;
    font-size: 1.5rem;
}
