/* --- Toast Container System --- */
#toast-container {
    position: fixed;
    z-index: 9999;
    padding: 1rem;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    width: 100%;
}

/* Positions */
#toast-container.top-left {
    top: 0;
    left: 0;
}

#toast-container.top-right {
    top: 0;
    right: 0;
}

#toast-container.bottom-left {
    bottom: 0;
    left: 0;
}

#toast-container.bottom-right {
    bottom: 0;
    right: 0;
}

#toast-container.top-center {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

#toast-container.bottom-center {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Individual Toast Style */
.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-left: 7px solid #ccc;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-item.dark {
    background: rgb(255, 255, 255);
    color: black;
}

.toast-item.light {
    background: #ffffff;
    color: #111827;
}

/* Icon */
.toast-icon {
    font-size: 1.25rem;
    margin-right: 0.85rem;
    display: flex;
    align-items: center;
}

/* Content */
.toast-content {
    flex-grow: 1;
    font-size: 0.95rem;
    font-weight: 500;
    word-break: break-word;
    white-space: normal;
}

/* Close Button */
.toast-close {
    background: transparent;
    border: none;
    color: currentColor;
    opacity: 0.5;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 0.75rem;
    margin-top: -2px;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(126, 178, 255, 0.986);
    width: 100%;
}

/* Types */
.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-info {
    border-left-color: #3b82f6;
}

/* Monochrome Overrides */
.toast-item.monochrome {
    border-left: 7px solid #000000;
    background: white;
    color: #000;
}

.toast-item.monochrome .toast-icon {
    color: #fff;
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast-enter-right {
    animation: slideInRight 0.4s ease-out forwards;
}

.toast-enter-left {
    animation: slideInLeft 0.4s ease-out forwards;
}

.toast-enter-up {
    animation: slideInUp 0.4s ease-out forwards;
}

.toast-enter-down {
    animation: slideInDown 0.4s ease-out forwards;
}

.toast-exit {
    transform: scale(0.85);
    opacity: 0;
    transition: 0.3s;
}