/* Global Notification Styles */

#global-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.notification-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0;
    animation: slide-in 0.3s ease forwards;
    border-left: 4px solid #ccc;
}

.notification-item.fade-out {
    animation: slide-out 0.3s ease forwards;
}

.notification-content {
    padding: 16px;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.notification-content i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.notification-content span {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 15px;
    height: 100%;
    transition: background-color 0.2s;
}

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

/* Notification types */
.notification-item.success {
    border-left-color: #10b981;
}

.notification-item.success i {
    color: #10b981;
}

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

.notification-item.error i {
    color: #ef4444;
}

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

.notification-item.warning i {
    color: #f59e0b;
}

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

.notification-item.info i {
    color: #3b82f6;
}

/* Animations */
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Responsive design */
@media (max-width: 480px) {
    #global-notification {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
}
