/* ========== NOTIFICATION OVERLAY ========== */
.notification-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
	background: rgb(37 33 26 / 72%);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.notification-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

body.notification-open {
    overflow: hidden !important;
    height: 100vh;
    width: 100vw;
    position: fixed;
}

/* ========== NOTIFICATION BOX ========== */
.notification-box {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: url(../images/bg/2.png) top/cover no-repeat;
    border: 0.2vh solid #eeba75;
    box-shadow: 0 0 0 1px #eeba75, 
                0 5px 30px #eeba75,
                0 0 10px #eeba75;
    animation: notification-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 6vh;
    border-radius: 0;
    z-index: 100000;
}

/* ========== NOTIFICATION DECORATION - LIKE PAGE_DECORATION ========== */
.notification-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.notification-decoration img {
    width: 12vh;
    height: auto;
    position: absolute;
    opacity: 0.7;
}

/* Top-left corner - no rotation */
.notification-decoration img:nth-child(1) {
    left: 0;
    top: 0;
}

/* Top-right corner - rotate 180 */
.notification-decoration img:nth-child(2) {
    right: 0;
    bottom: 0;
    transform: rotate(180deg);
}

/* Bottom-right corner - rotate 90 */
.notification-decoration img:nth-child(3) {
    right: -0.75vh;
    top: 0.75vh;
    transform: rotate(90deg);
}

/* Bottom-left corner - rotate -90 */
.notification-decoration img:nth-child(4) {
    left: -0.8vh;
    bottom: 0.75vh;
    transform: rotate(-90deg);
}

/* ========== NOTIFICATION ANIMATIONS ========== */
@keyframes notification-in {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes notification-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.92);
    }
}

.notification-box.closing {
    animation: notification-out 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ========== NOTIFICATION CONTENT ========== */
.notification-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.notification-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
    font-weight: bold;
}

/* ========== NOTIFICATION TYPES - SUCCESS ========== */
.notification-box.notification-success .notification-icon {
    background: rgba(76, 175, 80, 0.2);
    color: #66bb6a;
    border: 1.5px solid rgba(76, 175, 80, 0.4);
}

.notification-box.notification-success {
	border: 0.3vh solid	rgba(104,91,68,.65);
}

/* ========== NOTIFICATION TYPES - ERROR ========== */
.notification-box.notification-error .notification-icon {
    background: #fff;
    color: #000;
}

.notification-box.notification-error {
	border: 0.3vh solid	rgba(104,91,68,.65);
}

/* ========== NOTIFICATION TYPES - WARNING ========== */
.notification-box.notification-warning .notification-icon {
    background: rgba(255, 193, 7, 0.2);
    color: #fdd835;
    border: 1.5px solid rgba(255, 193, 7, 0.4);
}

.notification-box.notification-warning {
	border-color: rgba(104,91,68,.65);
	border: .2vh;
}

/* ========== NOTIFICATION TYPES - INFO ========== */
.notification-box.notification-info .notification-icon {
    background: rgba(33, 150, 243, 0.2);
    color: #42a5f5;
    border: 1.5px solid rgba(33, 150, 243, 0.4);
}

.notification-box.notification-info {
    border: 0.3vh solid	rgba(104,91,68,.65);
}

/* ========== NOTIFICATION TYPES - LOADING ========== */
.notification-box.notification-loading .notification-icon {
    background: rgba(255, 152, 0, 0.2);
    color: rgba(210, 165, 60, 0.9);
    border: 1.5px solid rgba(255, 152, 0, 0.4);
}

.notification-box.notification-loading {
    border: 0.3vh solid	rgba(104,91,68,.65);
}

/* ========== NOTIFICATION TEXT ========== */
.notification-text {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: rgba(210, 175, 90, 0.95);
}

.notification-message {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    word-break: break-word;
    word-wrap: break-word;
}

/* ========== NOTIFICATION CLOSE BUTTON ========== */
.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: rgba(180, 140, 60, 0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
    line-height: 1;
    min-width: 32px;
    min-height: 32px;
    z-index: 10;
}

.notification-close:hover {
    color: rgba(210, 175, 90, 0.9);
}

.notification-close:active {
    opacity: 0.7;
}

/* ========== LOADING SPINNER ========== */
.notification-spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid rgba(210, 165, 60, 0.2);
    border-top-color: rgba(210, 165, 60, 0.9);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== PROGRESS BAR ========== */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(210, 175, 90, 0.9), transparent);
    border-radius: 0;
    /*animation: progress-fade 3s linear forwards;*/
}

@keyframes progress-fade {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 920px) {
    .notification-box {
        max-width: 90%;
        padding: 5vh;
    }

    .notification-content {
        gap: 14px;
    }

    .notification-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .notification-title {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .notification-message {
        font-size: 13px;
        line-height: 1.4;
    }

    .notification-close {
        top: 6px;
        right: 6px;
        font-size: 16px;
    }

    .notification-decoration img {
        width: 10vh;
    }
}

@media (max-width: 640px) {
    .notification-box {
        max-width: calc(100% - 20px);
        padding: 4vh;
    }

    .notification-content {
        gap: 12px;
    }

    .notification-decoration img {
        width: 8vh;
    }

    .notification-title {
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .notification-message {
        font-size: 12px;
    }
}

/* ========== ACCESSIBILITY ========== */
.notification-close:focus {
    outline: 1px solid rgba(210, 175, 90, 0.5);
    outline-offset: 2px;
}