/* Custom Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.notification {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* Success Notification */
.notification.success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: #ffffff;
    border-left: 4px solid #2e7d32;
}

/* Error Notification */
.notification.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: #ffffff;
    border-left: 4px solid #c62828;
}

/* Warning Notification */
.notification.warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #ffffff;
    border-left: 4px solid #e65100;
}

/* Info Notification */
.notification.info {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #ffffff;
    border-left: 4px solid #1565c0;
}

.notification-icon {
    margin-right: 12px;
    font-size: 20px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 15px;
}

.notification-message {
    font-weight: 400;
    opacity: 0.95;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: 12px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

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

/* Progress bar animation */
.notification::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    animation: progress 5s linear forwards;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        margin-bottom: 8px;
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .notification-icon {
        font-size: 18px;
        margin-right: 10px;
    }
}

/* Animation for stacking notifications */
.notification:nth-child(2) {
    animation-delay: 0.1s;
}

.notification:nth-child(3) {
    animation-delay: 0.2s;
}

.notification:nth-child(4) {
    animation-delay: 0.3s;
}
