/* Global Notification System Styles */

#notification-container {
    margin-top: 90px;
    pointer-events: none;
}

.notification {
    pointer-events: auto;
    max-width: 400px;
    min-width: 300px;
}

.notification-show {
    transform: translateX(0) !important;
}

/* Notification Types */
.notification-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: rgb(16, 185, 129);
}

.notification-success .notification-close {
    color: rgb(16, 185, 129);
    opacity: 0.7;
}

.notification-success .notification-close:hover {
    opacity: 1;
}

.notification-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: rgb(239, 68, 68);
}

.notification-error .notification-close {
    color: rgb(239, 68, 68);
    opacity: 0.7;
}

.notification-error .notification-close:hover {
    opacity: 1;
}

.notification-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: rgb(245, 158, 11);
}

.notification-warning .notification-close {
    color: rgb(245, 158, 11);
    opacity: 0.7;
}

.notification-warning .notification-close:hover {
    opacity: 1;
}

.notification-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: rgb(59, 130, 246);
}

.notification-info .notification-close {
    color: rgb(59, 130, 246);
    opacity: 0.7;
}

.notification-info .notification-close:hover {
    opacity: 1;
}

/* Dark theme support */
.dark .notification-success {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: rgb(52, 211, 153);
}

.dark .notification-error {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: rgb(248, 113, 113);
}

.dark .notification-warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: rgb(251, 191, 36);
}

.dark .notification-info {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: rgb(96, 165, 250);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    #notification-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .notification {
        max-width: none;
        min-width: auto;
    }
}

/* Animation improvements */
.notification {
    animation: slideInRight 0.3s ease-out;
}

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

/* Progress bar for timed notifications */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: currentColor;
    opacity: 0.3;
    animation: progressBar linear;
}

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

/* Hover effects */
.notification:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.notification .notification-close {
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    padding: 0.25rem;
}

.notification .notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.dark .notification .notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Confirmation dialog styles */
.notification .confirm-yes,
.notification .confirm-no {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.notification .confirm-yes:hover,
.notification .confirm-no:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
