﻿/* Contenedor principal */
#toast-container {
    top: 40px !important;
    left: 2vw !important;
    right: auto !important;
    width: 96vw !important;
    font-size: 14px !important;
    pointer-events: auto !important;
}

/* Estructura del toast */
#toast-container > div {
    width: 100% !important;
    padding: 1rem 1rem 1rem 3rem !important;
    border-radius: 0.7rem !important;
    background-repeat: no-repeat !important;
    background-size: 20px !important;
    background-position: 15px center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
    display: flex;
}

/* Hover effect */
#toast-container > div:hover {
    box-shadow: 0 0 12px #999999 !important;
    cursor: pointer !important;
}

/* Contenedor del mensaje */
.toast-message {
    font-size: 14px !important;
    line-height: 1.5 !important;
    -ms-word-wrap: break-word !important;
    word-wrap: break-word !important;
    flex: 1 !important;
    padding-right: 10px !important;
}

.toast-close-button {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    float: none !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    opacity: 0.8 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
    cursor: pointer !important;
    color: inherit !important;
    z-index: 2 !important;
    text-shadow: none !important;
}

.toast-close-button:hover,
.toast-close-button:focus {
    opacity: 1 !important;
    color: inherit !important;
    text-decoration: none !important;
    outline: none !important;
}

/* Colores específicos del botón cerrar según tipo */
.toast-success .toast-close-button {
    color: #087735 !important;
}

.toast-error .toast-close-button {
    color: #ce0f0f !important;
}

.toast-warning .toast-close-button {
    color: #e25314 !important;
}

.toast-info .toast-close-button {
    color: #0c5460 !important;
}


.toast-success {
    color: #087735 !important;
    background-color: #d1f2de !important;
}

#toast-container > .toast-success {
    background-image: url('../Content/images/check.png') !important;
}


.toast-error {
    color: #ce0f0f !important;
    background-color: #ffdcdc !important;
}

#toast-container > .toast-error {
    background-image: url('../Content/images/warning.png') !important;
}

.toast-warning {
    color: #e25314 !important;
    background-color: #ffe1d7 !important;
}

#toast-container > .toast-warning {
    background-image: url('../Content/images/info.png') !important;
}

/*.toast-info {
    color: #0c5460 !important;
    background-color: #d1ecf1 !important;
}*/

/*#toast-container > .toast-info {
    background-image: url('../Content/images/info.png') !important;
}*/

.toast-title {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Barra de progreso */
.toast-progress {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 4px !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    opacity: 0.4 !important;
}

/* Responsive - Mobile */
@media all and (max-width: 768px) {
    #toast-container {
        left: 2vw !important;
        right: 2vw !important;
        width: 96vw !important;
    }

        #toast-container > div {
            padding: 0.8rem 2.5rem 0.8rem 2.5rem !important;
            background-position: 10px center !important;
        }

    .toast-title {
        font-size: 14px !important;
    }

    .toast-message {
        font-size: 13px !important;
    }

    .toast-close-button {
        right: 8px !important;
        font-size: 24px !important;
    }
}
