/* Notification Pulse Styling */
#notifPanel {
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569;
}

/* Toast Notifications */
.mela-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.mela-toast {
    pointer-events: auto;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 320px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #cbd5e1;
}

.dark .mela-toast {
    background: #1e293b;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.mela-toast.show {
    transform: translateX(0);
}

.mela-toast-success { border-left-color: #10b981; }
.mela-toast-error { border-left-color: #f43f5e; }
.mela-toast-info { border-left-color: #3b82f6; }
.mela-toast-warning { border-left-color: #f59e0b; }

.mela-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.mela-toast-success .mela-toast-icon { color: #10b981; background: #ecfdf5; }
.mela-toast-error .mela-toast-icon { color: #f43f5e; background: #fff1f2; }
.mela-toast-info .mela-toast-icon { color: #3b82f6; background: #eff6ff; }
.mela-toast-warning .mela-toast-icon { color: #f59e0b; background: #fffbeb; }

.dark .mela-toast-success .mela-toast-icon { background: rgba(16, 185, 129, 0.2); }
.dark .mela-toast-error .mela-toast-icon { background: rgba(244, 63, 94, 0.2); }
.dark .mela-toast-info .mela-toast-icon { background: rgba(59, 130, 246, 0.2); }
.dark .mela-toast-warning .mela-toast-icon { background: rgba(245, 158, 11, 0.2); }

.mela-toast-content {
    flex: 1;
}
.mela-toast-title {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 2px;
}
.mela-toast-message {
    font-size: 0.75rem;
    color: #64748b;
}
.dark .mela-toast-message {
    color: #94a3b8;
}

.mela-toast-close {
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
}
.mela-toast-close:hover {
    color: #475569;
}
.dark .mela-toast-close:hover {
    color: #cbd5e1;
}
