/* Custom Toast Styles based on Uiverse.io design */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-content {
    padding: 0.75rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    border-left: 4px solid transparent;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.toast-content:hover {
    transform: scale(1.05);
}

/* Success */
.toast-success .toast-content {
    background-color: #dcfce7;
    border-left-color: #22c55e;
    color: #14532d;
}
.toast-success .toast-content:hover {
    background-color: #bbf7d0;
}
.toast-success svg {
    color: #16a34a;
}

/* Info */
.toast-info .toast-content {
    background-color: #dbeafe;
    border-left-color: #3b82f6;
    color: #1e3a8a;
}
.toast-info .toast-content:hover {
    background-color: #bfdbfe;
}
.toast-info svg {
    color: #2563eb;
}

/* Warning */
.toast-warning .toast-content {
    background-color: #fef9c3;
    border-left-color: #eab308;
    color: #713f12;
}
.toast-warning .toast-content:hover {
    background-color: #fef08a;
}
.toast-warning svg {
    color: #ca8a04;
}

/* Error */
.toast-error .toast-content {
    background-color: #fee2e2;
    border-left-color: #ef4444;
    color: #7f1d1d;
}
.toast-error .toast-content:hover {
    background-color: #fecaca;
}
.toast-error svg {
    color: #dc2626;
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-right: 12px;
}

.toast-message {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0;
}

/* Animation classes */
.toast-enter {
    transform: translateX(120%);
    opacity: 0;
}

.toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.toast-exit {
    transform: translateX(120%);
    opacity: 0;
}

@media (max-width: 576px) {
    #toast-container {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .toast-success .toast-content { background-color: #064e3b; color: #dcfce7; border-left-color: #059669; }
    .toast-info .toast-content { background-color: #1e3a8a; color: #dbeafe; border-left-color: #2563eb; }
    .toast-warning .toast-content { background-color: #713f12; color: #fef9c3; border-left-color: #ca8a04; }
    .toast-error .toast-content { background-color: #7f1d1d; color: #fee2e2; border-left-color: #dc2626; }
    
    .toast-success .toast-content:hover { background-color: #065f46; }
    .toast-info .toast-content:hover { background-color: #1e40af; }
    .toast-warning .toast-content:hover { background-color: #854d0e; }
    .toast-error .toast-content:hover { background-color: #991b1b; }
}

.dark .toast-success .toast-content { background-color: #064e3b; color: #dcfce7; border-left-color: #059669; }
.dark .toast-info .toast-content { background-color: #1e3a8a; color: #dbeafe; border-left-color: #2563eb; }
.dark .toast-warning .toast-content { background-color: #713f12; color: #fef9c3; border-left-color: #ca8a04; }
.dark .toast-error .toast-content { background-color: #7f1d1d; color: #fee2e2; border-left-color: #dc2626; }

.dark .toast-success .toast-content:hover { background-color: #065f46; }
.dark .toast-info .toast-content:hover { background-color: #1e40af; }
.dark .toast-warning .toast-content:hover { background-color: #854d0e; }
.dark .toast-error .toast-content:hover { background-color: #991b1b; }
