/* Custom Smart Toaster */
.smart-toaster-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    pointer-events: none;
}

.smart-toaster {
    pointer-events: auto;
    min-width: 320px;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 15px;
    overflow: hidden;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
}

.smart-toaster.success {
    border-left-color: #10b981;
}

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

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

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

.smart-toaster-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.smart-toaster-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.smart-toaster.success .smart-toaster-icon {
    background: #d1fae5;
    color: #10b981;
}

.smart-toaster.error .smart-toaster-icon {
    background: #fee2e2;
    color: #ef4444;
}

.smart-toaster.warning .smart-toaster-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.smart-toaster.info .smart-toaster-icon {
    background: #dbeafe;
    color: #3b82f6;
}

.smart-toaster-body {
    flex: 1;
    min-width: 0;
}

.smart-toaster-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    margin: 0 0 4px 0;
    text-transform: capitalize;
}

.smart-toaster-message {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.smart-toaster-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.smart-toaster-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.smart-toaster-progress {
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.smart-toaster-progress-bar {
    height: 100%;
    background: currentColor;
    animation: progressBar 3s linear;
}

.smart-toaster.success .smart-toaster-progress-bar {
    color: #10b981;
}

.smart-toaster.error .smart-toaster-progress-bar {
    color: #ef4444;
}

.smart-toaster.warning .smart-toaster-progress-bar {
    color: #f59e0b;
}

.smart-toaster.info .smart-toaster-progress-bar {
    color: #3b82f6;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes progressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.smart-toaster.removing {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* Dark Theme Support */
.dark-theme .smart-toaster {
    background: #1f2937;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dark-theme .smart-toaster-title {
    color: #f9fafb;
}

.dark-theme .smart-toaster-message {
    color: #d1d5db;
}

.dark-theme .smart-toaster-close {
    color: #9ca3af;
}

.dark-theme .smart-toaster-close:hover {
    background: #374151;
    color: #e5e7eb;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .smart-toaster-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .smart-toaster {
        min-width: auto;
        max-width: none;
    }
}
