/* =========================================
   Reset y base
   ========================================= */
html, body {
    height: 100%;
    margin: 0;
    font-size: 14px;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    padding-top: 90px; /* altura navbar fija */
    margin-bottom: 0;
    overflow-y: auto;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}


/* =========================================
   Sidebar (desktop)
   ========================================= */

@media (min-width: 768px) {
    .sidebar {
        display: block !important;
        position: fixed;
        top: 56px; /* navbar */
        bottom: 0;
        left: 0;
        width: 250px;
        padding-top: 1rem;
        z-index: 1020;
        background-color: #f8f9fa;
        box-shadow: inset -1px 0 0 rgba(0,0,0,.1);
        overflow-y: auto;
    }

    main {
        margin-left: 16.666667%;
    }

    .nav-arrow {
        cursor: pointer;
    }

    .brand {
        color: #272da3 !important;
        font-size: 2.3em;
        font-family: 'Times New Roman', Times, serif;
    }

    #sidebarMenu a.d-flex {
        font-size: 13px;
        font-family: 'Cascadia Mono';
        color: #272da3;
    }

    #sidebarMenu a:not(.d-flex) {
        font-size: 12px;
        font-family: 'Cascadia Mono';
        color: #272da3;
        font-weight: 400;
    }

    #sidebarMenu a:hover {
        background-color: #9FB3FF;
        color: #000 !important;
        cursor: pointer;
    }
}

/* CORRECCIÓN FINAL PARA TOASTR */

#toast-container {
    z-index: 999999 !important;
    position: fixed;
}

    #toast-container.toast-top-right {
        top: 85px !important;
        left: auto !important;
        right: 20px !important;
        max-width: 350px;
        width: 100%;
    }

.toast {
    padding: 15px 15px 15px 15px !important; /* Relleno uniforme de 15px */
    opacity: 1 !important; /* Asegura que la transparencia no interfiera */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important; /* Añade una pequeña sombra para separarla visualmente */
}

/* Aplica relleno al título y al mensaje, asegurando que no se peguen */
.toast-title {
    padding-right: 5px !important; /* Relleno a la derecha del título */
    font-weight: bold !important; /* Recomendado para el título */
}

.toast-message {
    padding-right: 5px !important; /* Relleno a la derecha del mensaje */
    word-wrap: break-word !important; /* Asegura que las palabras largas se envuelvan */
}



.toast-error {
    background-color: #BD362F !important; /* Rojo oscuro */
    color: white !important;
}

.toast-success {
    background-color: #51A351 !important; /* Verde */
    color: white !important;
}

.blueCorp {
    background-color: #272da3;
}