.notifications {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Safe default to avoid accidental top-left placement */
    top: 24px;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    align-items: center;
}

/* Position variants — JS always sets notifications + notifications--* */
.notifications--right {
    bottom: 24px;
    right: 24px;
    left: auto;
    top: auto;
    align-items: flex-end;
}

.notifications--left {
    bottom: 24px;
    left: 24px;
    right: auto;
    top: auto;
    align-items: flex-start;
}

.notifications--center {
    bottom: 24px;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    align-items: center;
}

.notifications--top-right {
    top: 24px;
    right: 24px;
    bottom: auto;
    left: auto;
    align-items: flex-end;
}

.notifications--top-left {
    top: 24px;
    left: 24px;
    bottom: auto;
    right: auto;
    align-items: flex-start;
}

.notifications--top-center {
    top: 24px;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    align-items: center;
}

.toast {
    min-width: 250px;
    width: auto;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    animation: toastSlideUp 0.3s ease-out forwards;
    pointer-events: all;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.toast i:first-child {
    font-size: 20px;
}

.toast .content {
    flex-grow: 1;
}

.toast .content .title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}

.toast .content span {
    font-size: 13px;
    opacity: 0.95;
    font-weight: 500;
}

.toast .fa-xmark {
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    margin-left: 8px;
    transition: opacity 0.2s;
}

.toast .fa-xmark:hover {
    opacity: 1;
}

/* Color Themes */
.toast.success {
    background: #10B981; /* Emerald Green */
}
.toast.error {
    background: #EF4444; /* Red */
}
.toast.warning {
    background: #F59E0B; /* Amber/Orange */
}
.toast.info {
    background: #3B82F6; /* Blue */
}

@keyframes toastSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

