﻿/* ==========================================================================
   CLAYMORPHIC TOASTR NOTIFICATIONS & POP-UPS
   ========================================================================== */
#toast-container {
    position: fixed !important;
    z-index: 9999999 !important;
    pointer-events: none !important;
}

#toast-container.toast-top-right {
    top: 88px !important;
    right: 28px !important;
}

#toast-container.toast-top-left {
    top: 88px !important;
    left: 28px !important;
}

#toast-container.toast-top-center {
    top: 88px !important;
    right: 0 !important;
    left: 0 !important;
    margin: 0 auto !important;
}

#toast-container.toast-bottom-right {
    bottom: 28px !important;
    right: 28px !important;
}

#toast-container.toast-bottom-left {
    bottom: 28px !important;
    left: 28px !important;
}

#toast-container.toast-bottom-center {
    bottom: 28px !important;
    right: 0 !important;
    left: 0 !important;
    margin: 0 auto !important;
}

@media (max-width: 768px) {
    #toast-container.toast-top-right,
    #toast-container.toast-top-left,
    #toast-container.toast-top-center {
        top: 76px !important;
        right: 16px !important;
        left: 16px !important;
        width: auto !important;
    }
    #toast-container > div,
    .toast {
        width: 100% !important;
        max-width: calc(100vw - 32px) !important;
    }
}

#toast-container > div,
.toast {
    pointer-events: auto !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 0 14px 0 !important;
    padding: 16px 48px 16px 72px !important;
    width: 360px !important;
    max-width: 90vw !important;
    min-height: 64px !important;
    border-radius: 20px !important;
    background-color: #ffffff !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    filter: none !important;
    -ms-filter: none !important;
    border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.95), inset 0 -2px 4px rgba(0, 0, 0, 0.03) !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
}

#toast-container > div:not([style*="display: none"]),
.toast:not([style*="display: none"]) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

#toast-container > div[style*="display: none"],
.toast[style*="display: none"] {
    display: none !important;
}

#toast-container > div:hover,
.toast:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 20px 42px -8px rgba(15, 23, 42, 0.22), 0 6px 16px rgba(15, 23, 42, 0.1), inset 0 2px 4px rgba(255, 255, 255, 0.95), inset 0 -2px 4px rgba(0, 0, 0, 0.04) !important;
}

/* 3D Claymorphic Icon Squircle Badge */
#toast-container > div::before,
.toast::before {
    content: "" !important;
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    display: block !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px 20px !important;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 2 !important;
}

#toast-container > div:hover::before,
.toast:hover::before {
    transform: translateY(-50%) scale(1.06) !important;
}

/* Success Toast */
#toast-container > .toast-success,
.toast-success {
    background-color: #ffffff !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
    border-left: 6px solid #10b981 !important;
}
#toast-container > .toast-success::before,
.toast-success::before {
    background-color: #10b981 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    box-shadow: inset 1px 2px 3px rgba(255, 255, 255, 0.5), 0 4px 10px rgba(16, 185, 129, 0.35) !important;
}
#toast-container > .toast-success .toast-title,
.toast-success .toast-title {
    color: #065f46 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    margin: 0 0 2px 0 !important;
}
#toast-container > .toast-success .toast-message,
.toast-success .toast-message {
    color: #047857 !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
}

/* Error Toast */
#toast-container > .toast-error,
.toast-error {
    background-color: #ffffff !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
    border-left: 6px solid #ef4444 !important;
}
#toast-container > .toast-error::before,
.toast-error::before {
    background-color: #ef4444 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    box-shadow: inset 1px 2px 3px rgba(255, 255, 255, 0.5), 0 4px 10px rgba(239, 68, 68, 0.35) !important;
}
#toast-container > .toast-error .toast-title,
.toast-error .toast-title {
    color: #991b1b !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    margin: 0 0 2px 0 !important;
}
#toast-container > .toast-error .toast-message,
.toast-error .toast-message {
    color: #b91c1c !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
}

/* Warning Toast */
#toast-container > .toast-warning,
.toast-warning {
    background-color: #ffffff !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
    border-left: 6px solid #f59e0b !important;
}
#toast-container > .toast-warning::before,
.toast-warning::before {
    background-color: #f59e0b !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'%3E%3C/path%3E%3Cline x1='12' y1='9' x2='12' y2='13'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'%3E%3C/line%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    box-shadow: inset 1px 2px 3px rgba(255, 255, 255, 0.5), 0 4px 10px rgba(245, 158, 11, 0.35) !important;
}
#toast-container > .toast-warning .toast-title,
.toast-warning .toast-title {
    color: #92400e !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    margin: 0 0 2px 0 !important;
}
#toast-container > .toast-warning .toast-message,
.toast-warning .toast-message {
    color: #b45309 !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
}

/* Info Toast */
#toast-container > .toast-info,
.toast-info {
    background-color: #ffffff !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
    border-left: 6px solid #3b82f6 !important;
}
#toast-container > .toast-info::before,
.toast-info::before {
    background-color: #3b82f6 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='16' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'%3E%3C/line%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    box-shadow: inset 1px 2px 3px rgba(255, 255, 255, 0.5), 0 4px 10px rgba(59, 130, 246, 0.35) !important;
}
#toast-container > .toast-info .toast-title,
.toast-info .toast-title {
    color: #1e40af !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    margin: 0 0 2px 0 !important;
}
#toast-container > .toast-info .toast-message,
.toast-info .toast-message {
    color: #1d4ed8 !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
}

/* Modern Circular Clay Close Button with GUARANTEED "X" icon */
#toast-container .toast-close-button,
.toast .toast-close-button,
button.toast-close-button {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: transparent !important;
    font-family: Arial, sans-serif !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-align: center !important;
    text-indent: 0 !important;
    border: 1.5px solid rgba(203, 213, 225, 0.9) !important;
    box-shadow: inset 1px 1px 2px #ffffff, 0 2px 5px rgba(0, 0, 0, 0.08) !important;
    opacity: 0.9 !important;
    text-shadow: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    z-index: 10 !important;
}

#toast-container .toast-close-button::after,
.toast .toast-close-button::after,
button.toast-close-button::after {
    content: "\00d7" !important;
    font-family: Arial, sans-serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #475569 !important;
    display: block !important;
    text-indent: 0 !important;
    pointer-events: none !important;
    margin-top: -2px !important;
}

#toast-container .toast-close-button:hover,
.toast .toast-close-button:hover,
button.toast-close-button:hover {
    background: #cbd5e1 !important;
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.12) !important;
}

#toast-container .toast-close-button:hover::after,
.toast .toast-close-button:hover::after,
button.toast-close-button:hover::after {
    color: #0f172a !important;
}

/* Progress bar */
#toast-container .toast-progress {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    height: 3px !important;
    opacity: 0.8 !important;
    border-radius: 0 0 20px 20px !important;
}
#toast-container > .toast-success .toast-progress {
    background-color: #10b981 !important;
}
#toast-container > .toast-error .toast-progress {
    background-color: #ef4444 !important;
}
#toast-container > .toast-warning .toast-progress {
    background-color: #f59e0b !important;
}
#toast-container > .toast-info .toast-progress {
    background-color: #3b82f6 !important;
}

/***
UI Loading
***/
.loading-message {
    display: inline-block;
    min-width: 125px;
    margin-left: -60px;
    padding: 10px;
    margin: 0 auto 0 -20px;
    color: #000 !important;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    /* padding: 5px 10px; */
    /* height: 40px; */
}

.loading-message.loading-message-boxed {
    border: 1px solid #ddd;
    background-color: #eee;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}

.loading-message > span {
    line-height: 20px;
    vertical-align: middle;
}

.loading-message > img {
    height: 25px !important;
}

.page-loading {
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 125px;
    margin-left: -60px;
    margin-top: -30px;
    padding: 7px;
    text-align: center;
    color: #333;
    font-size: 13px;
    border: 1px solid #ddd;
    background-color: #eee;
    vertical-align: middle;
    -webkit-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}

.page-loading > span {
    line-height: 20px;
    vertical-align: middle;
}

.page-spinner-bar {
    position: fixed;
    z-index: 10051;
    width: 100px;
    top: 40%;
    left: 50%;
    margin-left: -55px;
    text-align: center;
}

.page-spinner-bar > div {
    margin: 0 5px;
    width: 18px;
    height: 18px;
    background: #eee;
    border-radius: 100% !important;
    display: inline-block;
    -webkit-animation: bounceDelay 1.4s infinite ease-in-out;
    animation: bounceDelay 1.4s infinite ease-in-out;
    /* Prevent first frame from flickering when animation starts */
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.page-spinner-bar .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.page-spinner-bar .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

.block-spinner-bar {
    display: inline-block;
    width: 80px;
    text-align: center;
}

.block-spinner-bar > div {
    margin: 0 2px;
    width: 15px;
    height: 15px;
    background: #dd4814;
    border-radius: 100% !important;
    display: inline-block;
    -webkit-animation: bounceDelay 1.4s infinite ease-in-out;
    animation: bounceDelay 1.4s infinite ease-in-out;
    /* Prevent first frame from flickering when animation starts */
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.block-spinner-bar .bounce1 {
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.block-spinner-bar .bounce2 {
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}



@-webkit-keyframes bounceDelay {
    0%, 80%, 100% {
        -webkit-transform: scale(0); }
    40% {
        -webkit-transform: scale(1); } }

@keyframes bounceDelay {
    0%, 80%, 100% {
        transform: scale(0);
        -webkit-transform: scale(0); }
    40% {
        transform: scale(1);
        -webkit-transform: scale(1); } }